EmEditor (text editor) Forum Index Regular Expressions
How to clean unclosed HTML TAG ? | Register To Post |
| Flat | Previous Topic | Next Topic |
| Poster | Thread |
|---|---|
| Stefan | Posted on: 11/13/2012 9:52 pm |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 261 |
Re: How to clean unclosed HTML TAG ? .
Hi and welcome. 1.) Do "<span" and "</span>" always be on the same line? Or could it be that they are on different lines like 1. <p><span style="font-weight:bold;"> CCNA Portable Command Guide</span></p> Your example doesn't provide this detail. - - - 2.) Is it always the first occurrence of "</span>" in a line that can be remove? Then the rule would be easier: if there is found a closing tag without an opening tag before, then it can be removed. Proof Of Concept: |
| Flat | Previous Topic | Next Topic |
| Subject | Poster | Date |
|---|---|---|
| |
liloli | 11/13/2012 4:49 pm |
| » |
Stefan | 11/13/2012 9:52 pm |
| |
liloli | 11/14/2012 3:48 pm |
| |
Stefan | 11/14/2012 9:29 pm |
| |
liloli | 11/17/2012 3:34 pm |
| |
Stefan | 11/18/2012 2:32 am |
| |
liloli | 11/18/2012 4:06 pm |
| |
Yutaka | 11/18/2012 4:41 pm |
| |
liloli | 11/18/2012 6:20 pm |
| Register To Post | |


