We use Python 3.6

go back Level: Advanced (img: AV / score: 4) level Bite 2. Regex Fun

225 out of 253 users completed this Bite ...
Will you be Pythonista #226 to crack this Bite?
Average Bite difficulty 1-10 rating: 4.55
» Up for a challenge? 💪

Learn Python regular expressions by writing the following 3 functions.

In each function's docstring we show the expected result.

The tests verify these expected results when you hit Save + Verify. We will do a more ample regex bite later on.

Note that for parsing HTML you would use a library of some sort, this is just to train your regex skills.

Github login button