Why does this match?
my $s = '<a href=\'2010-coachmen-mirada-bunk-house-w2-slides-for-sale- +TX-i111851\' class=\'uviss-rv_inventoryListMoreInfoLink\'>'; if ($s =~ /href=(['"])([^\1>]+?for-sale[^\1>]+?)\1>/i) { print "$2\n"; }
Doesn't [^\1>]+? mean look for a sequence of characters not containing \1 or >? I get this result:
2010-coachmen-mirada-bunk-house-w2-slides-for-sale-TX-i111851' class='uviss-rv_inventoryListMoreInfoLinkIn reply to Pattern Matching by nwboy74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |