How do I remove everything beginning in ‘<‘ and ending in ‘>’ from a string in C#. I know it can be done with regex but I’m not very good with it.
Share
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.
The tag pattern I quickly wrote for a recent small project is this one.
I used it like this
It would likely need to be modified to correctly handle script or style tags.