Could not solve exceptions with Regular Expressions, falling back to readable JS