Skip to content

constant regex has extra escape slash #2

Open
@tirthb

Description

@tirthb

The original regex was [1-2][0-9]{3}\-[0-1][0-9]\-[0-3][0-9]

But the contant regex in the general sol had an extra escape character.
string public constant regex = "[1-2][0-9]{3}\\-[0-1][0-9]\-[0-3][0-9]";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions