diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-15 04:43:13 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-10-15 04:44:07 +0300 |
| commit | 95908b0f50e26fe2c90687966b60a0cf195f71de (patch) | |
| tree | 4bdbe99b47accb07ae45e50a8944be6a67679313 /tests | |
| parent | d27c0bb3aa3e571a9efc43fa54c16b85e91a7b03 (diff) | |
modure: Update to re1.5 v0.6, support for char sets/classes ([a-c]).
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") |
