in reply to Re: Regular Expression help
in thread Regular Expression help

Won't the greedy flag give him every thing between the first SPORT and the last END as a single string?

Replies are listed 'Best First'.
Re^3: Regular Expression help
by 7stud (Deacon) on Nov 05, 2009 at 22:56 UTC
    It's not a 'greedy' flag. Regular expressions are greedy by default--you don't need a flag for that. The proposed solution actually turns off the greedy nature of a regex by using a non-greedy match: .*?
Re^3: Regular Expression help
by toolic (Bishop) on Nov 06, 2009 at 00:15 UTC
    What happened when you ran the code I posted using the OP's data?