Thank you educated_foo.
in reply to Re: Perl RE; how to capture, and replace based on a block?
in thread Perl RE; how to capture, and replace based on a block?
" Keep adding "VAR," between the parens in #2 as long as Perl complains about 'Global symbol "VAR"...'
Someone should probably write an Acme:: module to do this automatically."
I'll be glad to. Just as soon as I figure this all out. :)
My biggest hangup, I think, is that I'm quite comfortable with sed. But sed is "greedy" by default, and while Perl RE can be. It's not, by default, and that's what I need here (not greedy).
will match my pattern in sed. But it will match from the first </div> till the first </body>. Which is too much.
Thanks again for the response, educated_foo
Yes. What say about me, is true.