Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Greetings, Monks.
I'm working on editing some documents (web pages), where I need to replace a block context, with a larger one. I've experimented, but can't yet get it quite right. For example, I am attempting to match the following: for some reason (my lack of experience with Perl RE) this doesn't work I can match </div> or </body>. But not both. Sorry for the bother. I'm so good with sed I feel I should be closer with Perl, than I am. But still haven't quite got the hang of it. :/ Thank you for your time, and consideration. --Chris UPDATE -- now with my broken exampleYes. What say about me, is true. In reply to Perl RE; how to capture, and replace based on a block? by taint
|
|