summaryrefslogtreecommitdiff
path: root/progs/a186.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a186.py')
-rw-r--r--progs/a186.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a186.py b/progs/a186.py
new file mode 100644
index 0000000..3011e9a
--- /dev/null
+++ b/progs/a186.py
@@ -0,0 +1,7 @@
+import re
+def text_match_three(text):
+ patterns = 'ab{3}?'
+ if re.search(patterns, text):
+ return 'Found a match!'
+ else:
+ return('Not matched!') \ No newline at end of file