On Mon, 27 Feb 2006 11:57:00 -0500, Walt Pattinson wrote:
>Is it possible to search for a string and set the replace string
>to not replace certain characters?
>
>IOW, I have a search with a wild character or
>two (|Ttest|d for example) and wish to replace 'test' with 'try'
>but leave the digit at the end.
That's easily possible with regular expressions.
As macro command: Replace("\ttest([0-9])", "\ttry\1", REGEXP)
Or via menu {Search, Replace}: (without quotes!)
- Search: "\ttest([0-9])"
- Replace: "\ttry\1"
- (o) Reg-Exp
Please note: The above syntax requires at least Vedit 6.15.
Older versions use {} instead of () for grouping.
Christian
|
|