The outer parenthesis captures the match and the inner should be escaped!$ perl -e '$_ = "(b)."; /(\(?=a|b|c\))/ && do { print "match!\n"; };' match!
In reply to Re: Why does this simple grouping regex not match?
by umasuresh
in thread Why does this simple grouping regex not match?
by december
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |