On Monday, October 13, 2003, at 12:15 PM, Rob Dixon wrote:
if ( /(\d+)\s+\(\d+\)/ ) {
I think at least anchoring the pattern to the front of the line is a good idea, just so we don't match some arbitrary junk in the middle of one of those text lines. I would use:
/^(\d+)\s+\(\d+\)/
They probably both work exactly the same, but I prefer to anchor when I can just to reduce my chances for error.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]