Page 1 of 1

Zeus Regex Replace

Posted: Wed Jul 13, 2005 6:03 pm
by ntitan
I'm trying to do a regex replace in Zeus.

Find What: \$blk(\d+)
Replace With: \$blk{'$1'}

how do I get the result of (\d+), and use it in my replace if I dont use $1?


Posted: Wed Jul 13, 2005 11:40 pm
by jussij
Zeus uses the Unix/Perl style of regular expression. I am not sure what style of regular expression you are using but it is not the Unix style :(

But I think I can see what your regular expression is trying to do.

Assume we have this code:

Code: Select all

Using this find text \$blk(\d+) and this replace text $blk(\1) a search and replace converts the code to:

Code: Select all

Is this the search/replace you where trying to achieve :?: