This regex <li>.*end does not work for the following text, what I’m doing wrong?
text
<li>asdsadasd
adssadasdasdasdas
asdasdasdasdasdad
adsasdasdasdasd
dasdadadsadadasdasdasdasda
end
Can someone help me write a regex to grab all the text?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default,
.does not match newlines. You must pass theDOTALLflag…Or equivalently,
Edit: Not the
re.MULTILINEflag — that changes the behavior of$and^.