How to retrieve the text between two html markup with c# ?
Edit : This is the only purpose of my question, ‘how to retrieve the string within two html markup using c#’, that’s all.
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.
Assuming you are referring to obtaining the text within a tag, you can either use a HTML parsing framework such as the HTML Agility Pack or you can use a regular expression. Something like:
The above will only match the text within the title tag.
Edit: You really should update your question to better explain what you are trying to achieve. The members of SO are more than happy to help, but if they can’t determine what you want they will likely move on to someone else’s question.