so on the second pass of while the regex is more or less like this:
$line='<p><a href="xxx.html"> test1</a><br> <a href="test2.htm"> test2 +</a><br> <a href="test3.htm"> test3</a><br> <a href="test4.htm"> test +4</a><br>'; $line=~/<a href=\"(.*?)\.htm\">/ig; $tmp=$1; print "LINE: $line\n"; print "TMP: $tmp KK\n\n";
why is it matching: xxx.html"> test1
<a href="test2
In reply to Re^5: regex not matching how I want it to :(
by glwa
in thread regex not matching how I want it to :(
by glwa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |