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
In reply to RE: REGEX: muliple search and replace
by a
in thread REGEX: muliple search and replace
by whahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |