in reply to Re: Regarding Regular Expressions
in thread Regarding Regular Expressions
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regarding Regular Expressions
by borisz (Canon) on Aug 17, 2004 at 13:28 UTC |