in reply to Re^5: How to use \W in Regular Expression?
in thread How to use \W in Regular Expression?

He knows it's wrong. He's asking how to fix it.
  • Comment on Re^6: How to use \W in Regular Expression?

Replies are listed 'Best First'.
Re^7: How to use \W in Regular Expression?
by AnomalousMonk (Archbishop) on Dec 31, 2009 at 21:44 UTC
    Yes, but what I was trying to point out, perhaps rather clumsily, was that the warning message, which Sachin took the trouble to insure would be generated, not only says what's wrong, but also implies how to fix it: the problematic  '\W' is an escape sequence when it's in a substitution string.