[Date Prev][Date Next]
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
...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
- From: Geoff Hibble <ghibble@LastFoot.com>
- Re: alnum?
- From: David J N Begley <email@example.com>