The outcome of this little code snippet is:my $test = "blah <span class='small'>13a</span> blah blah"; if ( $test =~ /([^>]\d+[a-z]*[^<])/ ) { print "No tag found: $1\n"; }
No tag found: 13a
Is this a bug or am I missing something? I'm running ActivePerl 5.8.7 Build 815 on Windows XP.
In reply to Angle brackets and regex problem by emav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |