Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Re: HTML document modificationby rob_au (Abbot) |
on May 28, 2004 at 02:39 UTC ( [id://357119]=note: print w/replies, xml ) | Need Help?? |
The issue with this approach is where the HTML document may include example HTML, including <body></body> tags, within <pre></pre> tags. The regular expression which BrowserUK has provided appears to be somewhat more robust, although I suspect that I will follow his suggestion to try reading the file backwards for the first </body> tag.
perl -le "print unpack'N', pack'B32', '00000000000000000000001011011110'"
In Section
Seekers of Perl Wisdom
|
|