Skip to content

regex matches function seems to be using \ as a delmiter #7

@brianpos

Description

@brianpos

The spec doesn't indicate that there should be any delimiting of string expressions, so the below expression should work, however it is requiring the \ characters to be delimited.

'^(?(")(".+?(?<!\\)"@)|(([0-9a-z]((\.(?!\.))|[-!#\$%&\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-z])@))(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-z][-\w]*[0-9a-z]*\.)+[a-z0-9][\-a-z0-9]{0,22}[a-z0-9]))$'

so if you replace all the \ with a \ this expression does work, but think isn't wanted/needed.

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