add new regex features that were in 5.10

Fixes #2