diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/extmod/ure1.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py index dff099c8c..577c8f61e 100644 --- a/tests/extmod/ure1.py +++ b/tests/extmod/ure1.py @@ -20,6 +20,13 @@ try: except IndexError: print("IndexError") +r = re.compile("[a-c]") +m = r.match("a") +print(m.group(0)) +m = r.match("d") +print(m) +m = r.match("A") +print(m) r = re.compile("o+") m = r.search("foobar") |
