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
The regex.fullmatch method has incorrect behavior when the partial flag is set and the regex uses negative lookahead:
importregexa=regex.compile(r"(?!(True|False)\b)(.*)")
print(a.fullmatch("True", partial=True))
# Should produce a match (since "True" is a prefix of the match "Truest") but does not.