Possible Duplicate:
RegEx match open tags except XHTML self-contained tags
how can I replace everything in between < > and the tag itself with a space?
Example:
<span class="bold">asdfsdfsda<br />sadfsdfsdf</span>
Output:
asdfsdfsda sadfsdfsdf
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.
DON’T PARSE HTML with regex. If this in a onetime controlled situation, then this would do:
Here it is in ruby. Change it based upon your tool.