[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: alnum?

David J N Begley writes:
>On Mon, 9 Aug 1999, Geoff Hibble wrote:
>> In the following:
>>      access to dn="^(cn|uid)=[:alnum:],ou=people,dc=foo,dc=com$"
>> what does "alnum" and "$" represent?
> In short, "alnum" matches any letter (ALphabetic character) or digit (NUMeric
> character);

...assuming your regular expression implementation supports it.
Otherwise you can use [a-zA-Z0-9].

Anyway, I believe it should be [[:alnum:]] instead of [:alnum:].
That way you can say e.g. [-.[:alnum:]] to match one "-", ".", number or