i have a , i am using regular expressions to find the patterns in the string. Now there are actually 3 patterns that i want to find, which are in order, but each may be repeated number of times. Is there a way in Perl Regular Expression to get all the occurences of the pattern. E.g. my string is something like this:
Now to find each occurence of 'e' followed by 'fg', i need to write a regular expression. So far i have tried 'e.*fg', but that picks only one occurence.
Is there a way out.