Skip to content

regexp-escaping list missing “{” #2752

Closed
@Serious54088

Description

@Serious54088

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}/;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions