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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py
index 1501a5264..39e84d51e 100644
--- a/tests/extmod/ure1.py
+++ b/tests/extmod/ure1.py
@@ -56,3 +56,9 @@ print(m.group(0))
m = re.search("w.r", "hello world")
print(m.group(0))
+
+m = re.match('a+?', 'ab'); print(m.group(0))
+m = re.match('a*?', 'ab'); print(m.group(0))
+m = re.match('^ab$', 'ab'); print(m.group(0))
+m = re.match('a|b', 'b'); print(m.group(0))
+m = re.match('a|b|c', 'c'); print(m.group(0))