It looks like the first (.)\2 would match ab, but the next (.)\1 would only match bb? I know I'm reading it incorrectly just begging for a plain explanation of whats going on there. Thanks!$_ = "yabba dabba doo"; if (/y(.)(.)\2\1/) { # matches 'abba' print "It matched a after the y"; }
In reply to Regex from Learning Perl by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |