$string = 'abcdefghijklfghijklabcdefg'; $c = 0; while ( ++$c && $string =~ m/(e(.*?fg){$c})/ ) { print "$1\n"; } __OUTPUT__ efg efghijklfg efghijklfghijklabcdefg
In reply to Re: Regarding Regular Expressions
by borisz
in thread Regarding Regular Expressions
by Sameet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |