Add method to change regex used, add tests for specific regex