$str=<<EOF; <html> <body> <p>Hello this is juts an example</p> <p><!---begin---><a href="nowhere.com">blahahahaha</a> </p><a href=" http://www.somewhere.com"> HELLO</a> </p><!---end--->Hello world</body> </html> EOF
$repl="Replacement Text";
$str =~ s/\<!---begin---\>.+?\<!---end---\>/$repl/im;
Well, that doesn't work.
Any suggestions on this one? I thought /m was supposed to make regex's span multiple lines, which seems to be the problem here, as :
print "good\n" if $str =~ /<!---begin--->.+?<!---end--->/mi
comes up with nothing, though I am able to match them on their own. Thanks
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>