You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While escaping spaces is allowed (and apparently sometimes required) in Python's regex syntax, it does not seem to be allowed in the the XML Schema regex syntax implemented by this library. The list of valid escapes is given here for single-character escapes and here for multi-char escapes.
As a\ b is not a valid regex, the error is expected. A version of an re.escape-like function geared toward the XML Schema regex language could definitely be a good addition to this library, so I'll leave this open as a feature request.
escaping a space is not necessary in javascript, but perfectly valid:
escaping spaces is required in python when using the
re.VERBOSE
flag, which strips all un-escaped whitespace:my use case is that i'm constructing a regex in python using
re.escape
which is then passed toxspattern.compile
, which is causing this crash.The text was updated successfully, but these errors were encountered: