Solutions involving substitution are not what the OP wants. How about this:
Taken literally, "e followed by fg" is efg. If other characters may come between, try:my @results = $mystr =~ /(efg)/g;
my @results = $mystr =~ /(e.*?fg)/g;
In reply to Re^2: Regarding Regular Expressions
by pbeckingham
in thread Regarding Regular Expressions
by Sameet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |