HTML lists? No problem!

Report a typo

HTML markup language encloses ordered-list elements in the <li>and </li> tags.
Can you define a regexp pattern that extracts elements from such lists? Print them each on a new line.

Sample Input 1:

<li>Sister</li> <li>Father</li> <li>Mother-in-law</li>

Sample Output 1:

Sister
Father
Mother-in-law
Write a program in Python 3
import re

string = input()
# your code here
___

Create a free account to access the full topic