it would match on something like %{FOO or %FOO}.$str =~ s/(^|[^\%](?:\%\%)*)\%\{?([_a-zA-Z]\w*)\}?/"$1".$env->{$2}/ge
How to aviod that in a single RE? I'm not quite sure... Time for me to do some digging....
In reply to Re: how can I combine these expressions?
by lhoward
in thread how can I combine these expressions?
by knight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |