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?

Thanks,
Nihal

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

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

Code: Select all

$blk(01)
$blk(02)
$blk(03)
$blk(04)
$blk(05)
Is this the search/replace you where trying to achieve :?:

Jussi