Skip to content

regexp-escaping list missing “{” #2752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Serious54088 opened this issue Oct 22, 2021 · 0 comments
Closed

regexp-escaping list missing “{” #2752

Serious54088 opened this issue Oct 22, 2021 · 0 comments

Comments

@Serious54088
Copy link

https://javascript.info/regexp-escaping

Here’s a full list of them: [ \ ^ $ . | ? * + ( )

It seems to me you forgot the { , which also needs to be escaped outside a class.

Let's say we want to match literally {3} , the regular expression should be var patt = /\{3}/;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant