Regular Expressions

Find a Match with search()

① Learn

Regular expressions let you describe text patterns. re.search() finds the first place a pattern appears.

② Implement — write it, run it, submit
Goal

Make `match_text` equal `42`.

Output
Hints
  • Stuck? Reveal a hint.
Free Tools & Calculators