Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I am using a regular expression :

C#
@"<[^>]*>"


to remove html tags, now it works great except for removing <
anyone have any suggestions, I googled and couldn't find anything.

The problem also comes in that I can only add it to that expression, so extra fictions or anything, that's a bit challenging.


King Regards and Thanx in advance

Quinell

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 11-Feb-14 22:06pm
v2
Comments
OriginalGriff 12-Feb-14 4:06am    
1) DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

2) Try to make sense - that doesn't explain what you are having a problem with, or what help you want.
Member 9374423 12-Feb-14 4:08am    
I stated that except for the < , that is the issue

1 solution

 
Share this answer
 
Comments
Member 9374423 12-Feb-14 4:11am    
Hi, this did not work. Thank you, any other suggestions? Regards
Maarten Kools 12-Feb-14 4:14am    
It works perfectly fine for me. What does the HTML look like what you're trying to strip?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900