laziness, impatience, and hubris | |
PerlMonks |
Applying a regex across multiple filesby nuance (Hermit) |
on May 25, 2000 at 21:00 UTC ( [id://14810]=perlquestion: print w/replies, xml ) | Need Help?? |
nuance has asked for the wisdom of the Perl Monks concerning the following question:
This shows up older than the other answers on the original Q &: A question Apply regex to entire file, not just individual lines ? that's because I've been trying to get it posted all afternoon. Ok Q & A isn't really designed to give you the kind of help you're looking for. Since you haven't logged in I can't contact you directly, but I've moved this to Seekers of Perl Wisom. You asked I'm trying to extract a specific block of recurring text from a daily-updated Web page, and output the result to a local file. I'm happy with my HTML retrieval, but then applying regex's on a line-by-line basis requires waaay too much tweeking on my part. How can I substitute across multiple lines? Preferably to the entire file. See my answer below, I'm having real problems posting this question
Back to
Seekers of Perl Wisdom
|
|