Update: extra ')' added to regex (thanks SamCG and prasadbabu!)while ($str =~ /(?=(\w{3}bc\w{2}))/g) { print "$-[1],$+[1],$1\n"; }
In reply to Re: Regex: continuous matching positions
by japhy
in thread Regex: continuous matching positions
by theshz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |