1

I am receiving a Syntax error in regular expression error in Internet Explorer 11 and I have tried the following options:

chars = text.split(/(?!$)/u),
chars = text.split(new RegExp("(?!$)", 'u'))
chars = text.split(new RegExp('/(?!$)/', 'u'));

I am curious what I am missing here. [insert comment how this works fine in other browsers]

1 Answer 1

3

You are trying to use a regular expression with the unicode flag ("u") which is not supported by any Internet Explorer <= 11.

You can try to use a library like XRegExp.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.