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
It is an interesting question about what the result of a successful match for an empty string should be. My take on it is that it should not report a failure for matching (i.e. the return value must not be negative), but the length of the match should be zero.
The text was updated successfully, but these errors were encountered:
Consider this program, which tries to match zero or more space characters in a string of length zero:
When compiled with re.c and executed, the assertion fails:
It is an interesting question about what the result of a successful match for an empty string should be. My take on it is that it should not report a failure for matching (i.e. the return value must not be negative), but the length of the match should be zero.
The text was updated successfully, but these errors were encountered: