We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2311f commit a3259bfCopy full SHA for a3259bf
0004-Regular-Expressions-Match/regex_match.py
@@ -51,3 +51,10 @@
51
RESULT = re.match(r'\w{6}', 'abcde12345')
52
print(result.group()) # Output: 'abcde1'
53
54
+print('Matching with Optional Characters (?)')
55
+RESULT = re.match(r'colou?r', 'color')
56
+print(result.group()) # Output: True
57
+
58
+print('Matching Alphanumeric Strings')
59
+RESULT = re.match(r'[A-Za-z0-9]+', 'Python123!')
60
+print(result.group()) # Output: Python123
0 commit comments