RegEx for the <li></li> tags

Posted by Abu on Stack Overflow See other posts from Stack Overflow or by Abu
Published on 2010-12-21T10:28:50Z Indexed on 2010/12/24 7:54 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

Hi All,

i am working on the C# WinForm application. In that application, i have snippet like this:

<ul>
<li>abc
<li>bbc
<li>xyz
<li>pqr </li></li></li></li>     
</ul>

but, i want to get output like..

<ul>
<li>abc</li>
<li>bbc</li>
<li>xyz</li>
<li>pqr</li>
</ul>

Is there any method using which this thing can be done?

Can anybody suggest me any RegEx for this problem?

Thanks. Regards.

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex