Page 1 of 1

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

Posted: Wed Jul 16, 2003 7:59 pm
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?

Posted: Wed Jul 16, 2003 9:23 pm
by Ed
Find
\([tdpb]\)
replace with
\t\1\t