Page 1 of 1

Character Classes

Posted: Tue Mar 06, 2007 4:02 am
by dhrosti
Is there a reason why I don't see many examples of people using character classes like [[:alnum:]] in regex patterns? Is it not as flexible as building the patterns by hand or something?

Posted: Tue Mar 06, 2007 4:51 am
by Kieran Huggins
isn't that the same as \d ?

Posted: Tue Mar 06, 2007 5:05 am
by dhrosti
Its identical to [A-Za-z0-9]. Maybe its just the POSIX way of doing things...