diff --git a/Python Regex b/Python Regex new file mode 100644 index 0000000..e383044 --- /dev/null +++ b/Python Regex @@ -0,0 +1,10 @@ +import re +pattern = '^a...s$' +test_string = 'abyss' +result = re.match(pattern, test_string) +if result: + print("Search successful.") +else: + print("Search unsuccessful.") + +