Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Group function 2/2 | Regex Wizards (Project)
Regex Wizards (Project)
course content

Kursinnehåll

Regex Wizards (Project)

book
Group function 2/2

Uppgift

Swipe to start coding

  1. Import re.
  2. Define a text variable as "123-456-7890".
  3. Search for the first vowel value in the string using the following grammar: ^\d{3}-\d{3}-\d{4}$.
  4. Print the output using the group() function.

Lösning

Mark tasks as Completed
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 6
AVAILABLE TO ULTIMATE ONLY
Vi beklagar att något gick fel. Vad hände?
some-alt