This seems to work, but I am sort of confused as to how it works !!use strict; use warnings; my $string = qq[FGTXYZGTFABCGHABCFGTXYZADXYZGTYABC]; #or try this my $string = qq[FGTXYZABCABC]; $string =~ m/[XYZ]{3}([A-Za-z]{0,21}?)[ABC]{3}?(?{print "matched at [< +$&>] $-[0]\n" })(?!)/x;
In reply to Re: Re(6): nested pattern matching
by vinforget
in thread nested pattern matching
by vinforget
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |