We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3485edc commit 69312ffCopy full SHA for 69312ff
1 file changed
unix-ffi/re/test_re.py
@@ -60,3 +60,9 @@
60
text = " \thello there\n \t how are you?"
61
indents = _leading_whitespace_re.findall(text)
62
assert indents == [" \t", " \t "]
63
+
64
+m = re.match(r"(.)?", "")
65
+assert m.group() == ""
66
+assert m.group(0, 1) == ("", None)
67
+assert m.groups() == (None,)
68
+assert m.groups("default") == ("default",)
0 commit comments