Fixes regex conversion failure when installed on PyPy.
Merge pull request #334 from selwin/master

Fixes regex conversion failure when installed on PyPy.