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.