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 c70e61c commit 170dc69Copy full SHA for 170dc69
0005-Regular-Expressions-Search/regex_search.py
@@ -37,14 +37,12 @@
37
RESULT = re.search(r'ab*', 'a')
38
print(bool(RESULT)) # Output: True
39
40
-"""
41
-Pattern r'ab*':
+# Pattern r'ab*':
+# The regular expression ab* is interpreted as:
42
+# 'a': Match the character 'a'.
43
+# 'b*': Match zero or more occurrences of the character 'b'.
44
+# This means the pattern will match an 'a' followed by zero or more 'b' characters.
45
-The regular expression ab* is interpreted as:
-'a': Match the character 'a'.
-'b*': Match zero or more occurrences of the character 'b'.
46
-This means the pattern will match an 'a' followed by zero or more 'b' characters.
47
48
49
RESULT = re.search(r'ab*', 'b')
50
print(bool(RESULT)) # Output: False
0 commit comments