in reply to Re: Regular expression
in thread Regular expression

So what if there is a '-' in front of the data in the last column:
/^(\d+) (\d\d:\d\d:\d\d) (\d\d-\w+-\d{4}) (\d+) (\d+\s+\d+) ([-]\d+\. +\d+E[-+]\d+)/; It don't work...

Replies are listed 'Best First'.
Re: Re: Re: Regular expression
by suaveant (Parson) on May 01, 2001 at 18:55 UTC
    -? allows for one or no -

    ? is one or none, * is zero or more, + is 1 or more
                    - Ant