regex question
Ian Ward Comfort
icomfort at rescomp.stanford.edu
Thu Apr 5 14:54:51 PDT 2007
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?
—IWC
More information about the MacOSX-admin
mailing list