Bite 2. Regex Fun

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.

301 out of 334 users completed this Bite.
Will you be Pythonista #302 to crack this Bite?
Average Bite difficulty 1-10 rating: 4.82
» Up for a challenge? 💪

Github login button
We use Python 3.7