diff options
Diffstat (limited to 'progs/a797.py')
-rw-r--r-- | progs/a797.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a797.py b/progs/a797.py new file mode 100644 index 0000000..da7ac90 --- /dev/null +++ b/progs/a797.py @@ -0,0 +1,7 @@ +import re
+def text_match_one(text):
+ patterns = 'ab+?'
+ if re.search(patterns, text):
+ return 'Found a match!'
+ else:
+ return('Not matched!')
|