iam-veeramalla / iam-veeramalla/python-for-devops
Regex Find and search examples are same
- Vorherrschende Sprache
- Python
- Sterne
- 4.8k
- Forks
- 10.3k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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']
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Compare 03-regex-findall.py with 03-regex-search.py and review the reported examples. Start by checking how each example demonstrates its intended regular-expression operation; done means the findall example clearly shows all matching occurrences and no longer duplicates the search example.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 35/100