in reply to REGEX: muliple search and replace
where %var_vals (probably an array'd work but ...) is filled w/ your varX's values ahead of time. I'm (blush) not sure, or rather, doubt the /e is needed (if it *is* the 'execute the RHS' flag - another blush. Where is my cheatbook?) but that may be what you want.s/<!--var(\d+)-->/$var_vals{$1}/eg
a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: REGEX: muliple search and replace
by floopy (Sexton) on Nov 15, 2000 at 02:26 UTC |