Skip to content

Regexp validate fails if meta-character like '\w' is used in Python 2.7 #13

@lmazuel

Description

@lmazuel

Example in Python 2.7:

>>> re.match('^[-\\w\\._\\(\\)]+$', u'éééé') # No match
>>> re.match('^[-\\w\\._\\(\\)]+$', u'éééé', re.U)
<_sre.SRE_Match object at 0x03935F70>

In Python 3.x both works

Need to add the re.UNICODE flag to all re calls in msrest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions