Fix error where it considers regexes with flags to be invalid

Also rename some test helpers
Fix bug where newlines in result are not escaped
Bump version to 0.0.15