use strict; use warnings; my $string = q{abc de fgh ijkl}; my $rxComb = qr {(?x) (?: ([a-z]+) \s+ (?=([a-z]+)) ) }; while ( $string =~ m{$rxComb}g ) { print qq{$1 $2\n}; }
Here's the output.
abc de de fgh fgh ijkl
I hope this is of use.
Cheers,
JohnGG
In reply to Re: Combinatorial regexing
by johngg
in thread Combinatorial regexing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |