This one should be an easy one for someone, but I havn't found a way to solve my problem yet.
I'm trying to use ereg to parse a file and grab everything between the word TOTALS and '<.'
Unfortunately, there are several occurances of <. and it won't stop and grabs everything between TOTALS and the last occurance of <. which is much more than I want.
Here is the line of code I'm using:
ereg("(TOTALS)(.*)(<.)", $string, $totals);
Thanks for your help.