Like said, escape the quotation mark. By itself it may start a quoted piece of characters, but it never stops (no ending quote).
See this for example:
echo "foo'bar" |grep \'
(GNU grep 2.6.3)
Edit: not that it means anything, but the original post, without explanations, does have a little questionable tone to it, taking into account the current situation. It wouldn't harm if you explained a little more what you're trying to achieve in general; if it's just technical stuff with regular expressions and/or matching in general, you could work this with more general strings (the so-called "minimal working example"). This is not, after all, a political forum.