find one of [tdpb] but keep original of [tdpb] while replaci

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
cesine
Posts: 3
Joined: Tue Jul 15, 2003 6:17 pm

find one of [tdpb] but keep original of [tdpb] while replaci

Post by cesine »

hi :)

id like to be able to search for instances that match
[tdpb]
and replace with
\t[tdpb]\t
where the [tdpb] would be some way of telling it to keep the original character, whether it was "t" or "d" or "p" etc...

this would essentially be combining
find: t
replace:\tt\t

find: d
replace:\td\t

find: p
replace:\tp\t

etc....

is there a way to do this?
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Find
\([tdpb]\)
replace with
\t\1\t
Post Reply