From: Mingzhou Nie (mnie@xxxxxxxxx)
Date: Fri Aug 23 2002 - 01:15:14 GMT-3
I would go for
^1000(_[0-9]+)*_100(_[0-9]+)*_10$
1000 followed by 0 or more _[0-9]+(_ followed by at least a digit, so
we rule out _ only), followed by _100 which is intuitive, followed by
again 0 or more _[0-9]+(if it's 0, it becomes null), and originated
from AS10.
--- ying c <bf5tgh1@yahoo.com> wrote:
> Checking it more closely, the following will pick up
> ^1000[0-9] as well when the first leading "?" is 0
>
> >
> > ^1000 ?([0-9].*)? 100 ?([0-9].*)? 10$
> >
>
> So here is my modified version:
>
> ^1000 ([0-9].*)? ?100 ([0-9].*)? ?10$
>
> regardless of whether "?" is equal to 0 or 1, it
> covers all the cases, and the statement will have the
> right spaces.
>
> I'd like to see Brian's final answer.
>
This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:48:34 GMT-3