Espressioni regolari · esercizio 1 di 1 · anteprima gratuita
The game so far · chapter 22
In questo momento: Il registro radio è un groviglio di rumore intorno a ZONE- e code=.
Missione di questo capitolo: Legge il registro radio confuso. Svolgi gli esercizi, poi il tuo codice la porta in vita.
re.search(pattern, text) finds the first match. A raw string r"..." keeps backslashes as they are. \d+ means one or more digits.
Search "level=42 noise" for r"\d+" and print the matched text with .group().