Zeus Regex Replace

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
ntitan
Posts: 6
Joined: Wed Jun 01, 2005 8:58 pm

Zeus Regex Replace

Post by ntitan » Wed Jul 13, 2005 6:03 pm

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

jussij
Site Admin
Posts: 2446
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Wed Jul 13, 2005 11:40 pm

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 12 guests