diff options
Diffstat (limited to 'tests/extmod/ure1.py')
-rw-r--r-- | tests/extmod/ure1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py index aeadf4e5c..48537c2ea 100644 --- a/tests/extmod/ure1.py +++ b/tests/extmod/ure1.py @@ -11,6 +11,10 @@ try: except IndexError: print("IndexError") +# conversion of re and match to string +str(r) +str(m) + r = re.compile("(.+)1") m = r.match("xyz781") print(m.group(0)) |