Pull Request for custom regex

Adding custom regex via garethsprice