\w does match the _ (underscore) punctuation character. But it doesn't match any of the others.
In reply to Re^2: Wrong regex? by jwkrahn in thread Wrong regex? by imrags