summaryrefslogtreecommitdiff
path: root/tests/extmod/ure1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ure1.py')
-rw-r--r--tests/extmod/ure1.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py
index 54471ed4f..710720c8b 100644
--- a/tests/extmod/ure1.py
+++ b/tests/extmod/ure1.py
@@ -28,6 +28,19 @@ try:
except IndexError:
print("IndexError")
+r = re.compile(r"\n")
+m = r.match("\n")
+print(m.group(0))
+m = r.match("\\")
+print(m)
+r = re.compile(r"[\n-\r]")
+m = r.match("\n")
+print(m.group(0))
+r = re.compile(r"[\]]")
+m = r.match("]")
+print(m.group(0))
+print("===")
+
r = re.compile("[a-cu-z]")
m = r.match("a")
print(m.group(0))