in reply to how can I combine these expressions?
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....
|
|---|