Open
Description
Both the code in 03-regex-findall.py and 03-regex-search.py is same search example
Here is a suggestion for findall:
import re
text = "The quick brown fox jumps over the quick brown dog"
pattern = r"quick"
Find all occurrences of the pattern 'quick'
matches = re.findall(pattern, text)
print("Matches found:", matches) # Output: Matches found: ['quick', 'quick']
Metadata
Metadata
Assignees
Labels
No labels