iam-veeramalla / iam-veeramalla/python-for-devops

Regex Find and search examples are same

Aperta
#100 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
4.8k
Fork
10.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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']

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.