Make regex dependency optional. Fixes textile/python-textile#13.