Just nit-picking, but keep in mind that \w and \W are not the same thing (note the case / capitalization). In fact, they are each other's complement: a character matched by \w will not be matched by \W, and vice versa.
--
dakkar - Mobilis in mobile
Most of my code is tested...
In reply to Re^3: Regex question : How to match \w and just the dash
by dakkar
in thread Regex question : How to match \w and just the dash
by hmbscully
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |