iam-veeramalla / iam-veeramalla/python-for-devops
Regex Find and search examples are same
Open
- Dominant language
- Python
- Stars
- 4.8k
- Forks
- 10.3k
- PR merge metrics
- No merged PRs in 30d
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']
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.