As far as I know, the lack of a body tag should not keep the browser from renedering the page. Most browsers are pretty forgiving when it comes that kind of stuff.
A combination of the lines I showed above could be done as:
$test =~ s/<head>.+<\/head>|<html>|<\/html>|<body.*?>|<\/body>//sgi;
I can't see why this would have cleared the entire string but then again, I haven't seen the entire string you are trying to parse. Perhaps you could post a little more... | [reply] [d/l] |
Chris...when you replied to my last post, I noticed that your statement had changed from <body.+> to <body.*?>
When I used <body.*?> it made all the difference and everything worked fine :)) Thanks so much for the help!
| [reply] |
Thanks for all the help Chris. When you replied I noticed that you said <body.*> when you had originally told me to use <body.+>....I put in <body.*> and everything worked fine. Thank you again.
| [reply] |