Your pattern is almost there, though instead of using the period to denote any character allowed, you should use a character class instead. You can use a caret (^) at the start of the character class to specify any characters you do not want to match (in this case, it is a single quote):