--- "Randy W. Sims" <[EMAIL PROTECTED]> wrote:
On 3/11/2004 9:01 PM, Stuart White wrote:
I'm confused about greediness. This is the line that I'm trying to match:
Spurs 94, Suns 82
If the line is as above, I probably wouldn't use a
regex. The following is more verbose, but easier to manage IMHO.
Unfortunately, that's just the line for this text file. The next file will have different numbers, and different teams. That's why I was using a regex.
The code I posted is not dependent on the team names or numbers only the format (which is no different than the requirement on a regex). As long as the format is:
beg-of-line one-or-more-spaces team-1 one-or-more-spaces score-1 0-or-more-spaces comma 0-or-more-spaces team-2 one-or-more-spaces score-2 one-or-more-spaces end-of-line
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>