RE: regexp fun

From: ying c (bf5tgh1@xxxxxxxxx)
Date: Fri Aug 23 2002 - 00:29:57 GMT-3


   
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