Premature generalisation is the root of much evil.
In practice, since the OP did not mention any character-set complications, it is a reasonable assumption that the task in question does not require matching non-ASCII capital letters or require excluding non-ASCII numerals. So there is no need to worry about Unicode ranges, and distinguishing between \d and [0-9] is splitting hairs.
In reply to Re^3: pattern matching
by Porculus
in thread pattern matching
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |