Regular expressions and replacing
Posted: Thu Oct 31, 2002 10:48 am
Hi all,
I am using a regular expression to search for certain character combinations. That works fine.
But I want to extend the found text by adding extra characters before it and one after it. The found text itself remains unchanged.
So I thought I'd use the ampersand (&) in the Replacement box.
But this doesn't work because after replacement TextPad starts the next search at the beginning of the replaced text. And there it finds the search expression again! Result: a loop.
How do I get TextPad to start the next search at the end of the replaced text?
TIA,
Bart
I am using a regular expression to search for certain character combinations. That works fine.
But I want to extend the found text by adding extra characters before it and one after it. The found text itself remains unchanged.
So I thought I'd use the ampersand (&) in the Replacement box.
But this doesn't work because after replacement TextPad starts the next search at the beginning of the replaced text. And there it finds the search expression again! Result: a loop.
How do I get TextPad to start the next search at the end of the replaced text?
TIA,
Bart