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

Re: alnum?

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);  the dollar sign matches the "null string at the end of a line"
(in other words, there are to be no other characters beyond this point in
order for the pattern to match).

See IEEE POSIX 1003.2 or any decent "extended regular expressions" reference.