Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
1.67/5 (3 votes)
See more:
hi every one
there no regular expression for parse many statement
if as
<B> word </B> dsdd<BR/>

<B>dd</B>dd <I>Anytown</I> ds <U>sd</U>

<B><U>dsds</U></B>

and if user enter tag without close this tag give error

thanks for any help
Posted
Updated 5-Jun-11 7:47am
v2
Comments
Kim Togo 5-Jun-11 12:52pm    
I do not understand your question. What do you want to find ?

1 solution

No, regular expressions are not good when handling bad inputs. In this case, you would probably be much better off using an fault tolerant HTML parser. There is one here: HTML Agility pack[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-Jun-11 21:48pm    
Regex is no a parser, not at all. My 5.
--SA

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