Works just fine, I'll add bug for it. Other nice trick that works is ``re.match(r"""(['"]?)foobar\1""", "'foobar'")`` if you want to match `"` or `'`.