regex question
Dan Shoop
shoop at iwiring.net
Thu Apr 5 16:26:28 PDT 2007
At 2:54 PM -0700 4/5/07, Ian Ward Comfort wrote:
>On Apr 5, 2007, at 2:16 PM, Dan Shoop wrote:
>>At 2:44 PM -0400 4/5/07, János wrote:
>>>Milo and Kreme gave some good tips, so for now I go with
>>>
>>>>>"^[ACNS][0-9]{2}-[0-9]{1,6}$"
>>
>>If your lib supports $, and I think that should
>>be "^[ACNS][0-9]{2}-[0-9]{1,6}.*$" is you want
>>to accept lines with stuff at the ends.
>
>What's the point of the upper bound on final
>digits if you're going to accept any trailing
>string with .*$ anyway?
I'm not sure if he is, but otherwise, yeah, you'd be right.
--
-dhan
------------------------------------------------------------------------
Dan Shoop AIM: iWiring
Systems & Networks Architect http://www.ustsvs.com/
shoop at iwiring.net http://www.iwiring.net/
1-714-363-1174
"The wise man doesn't give the right answers, he poses the right
questions." -- Claude Levi-Strauss
------------------------------------------------------------------------
iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
More information about the MacOSX-admin
mailing list