in reply to Not matching a single quote (apostrophe!)

Take a look at \Q and \E escapes, which allow to turn off special chars in a regexp.

  • Comment on Re: Not matching a single quote (apostrophe!)