in reply to Re^4: stripped punctuation
in thread stripped punctuation

The \w means "any alphanumeric character or underscore." So in your regex, where you have [^\w\d] it's a bit redundant. \w can be replaced by [a-zA-Z0-9_] so you're writing [a-zA-Z0-9_0-9] in the regexen above.

Also note that since \w includes the underscore you're matching more than what you say you want.