Using regexes.php file instead of regexes.json

Fixes #232