I know you already have your question answered, but just a small note: \d and _ are in \w, so [\w\d\-\_] is just the same thing as [\w-].
In reply to Re: regexp issue: Porting script from 5.6.1 to 5.005_02
by jryan
in thread regexp issue: Porting script from 5.6.1 to 5.005_02
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |