in reply to Wrong regex?

\w doesn't match punctuation other than underscores. Specifically, \w+ doesn't match 10.10.10.10

Replies are listed 'Best First'.
Re^2: Wrong regex?
by jwkrahn (Abbot) on Feb 10, 2010 at 06:38 UTC

    \w does match the _ (underscore) punctuation character.    But it doesn't match any of the others.

      I don't think of it that way, but yeah, I suppose it is a punctuation mark. Fixed.