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.
Preconditions and postconditions
HTML lists? No problem!
Report a typo
Sample Input 1:
<li>Sister</li> <li>Father</li> <li>Mother-in-law</li>Sample Output 1:
Sister
Father
Mother-in-lawWrite a program in Python 3
import re
string = input()
# your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.