I need to find anything inside a tr…
<tr class="class1">
more tags here,
multiple lines...
</tr>
How can I get anything that’s between <tr class="class1"> and </tr>?
thanks!
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 need to use a real HTML parser, regex isn’t sufficient to perform this task.
That said, you can use a poor expression like this:
/<tr.*?>(.*?)<\/tr>/where group 1 will have what’s (generally) between the<tr>tags, but no guarantees on correctness…things like nested tags will throw this off. You need to use a real HTML parser.