I have the following text:
<!--:en-->
<!--:-->
I want to construct a pattern to extract it from a string (PHP). I try with:
<!--:[a-z]{2}-->( \r\n\s)<!--:-->
But it does not work, does anybody know why or could help me?
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.
You probably don’t want to use regex to parse XML/HTML.
And that for a lot of reasons.
Instead usually you would prefer to parse with tools made for this specific task.
Anyway, what you need here is more something like: