legal identifier check

Saaa empty at needmail.com
Sun May 31 16:49:07 PDT 2009


> Hello Saaa,
>
>>> if you are only working with ASCII: use the regex
>>> `_A-Za-z[_A-Za-z0-9]*`
>>>
>> Is that better than the inPattern way?
>>
>
> yes, it correctly rejects numbers at the start and should be faster as 
> well.

Of course, should have looked longer at the regex line, thanks! 




More information about the Digitalmars-d-learn mailing list