EmEditor (text editor) Forum Index Regular Expressions
How to clean unclosed HTML TAG ? | Register To Post |
| Flat | Previous Topic | Next Topic |
| Poster | Thread |
|---|---|
| liloli | Posted on: 11/13/2012 4:49 pm |
Just popping in ![]() ![]() Joined: 11/13/2012 From: Posts: 5 |
How to clean unclosed HTML TAG ? Hi! I'd like to do such replacement:
The primary task is to locate "</span>" which is not appear in pairs. Note the "</span>" in line 3, line 5, line 7. They should be cleaned off. *SOURCE: 1. <p><span style="font-weight:bold;">CCNA Portable Command Guide</span></p> 2. <p><span style="font-weight:bold;">Second Edition Scott Empson</span></p> 3. <p>Cisco Press</span></p> 4. <p>800 East 96th Street Indianapolis, Indiana 46240 USA</p> 5. <p>Command Syntax Conventions</span></p> 6. <h1><span style="font-weight:bold;">PART I</span> <span style="font-weight:bold;">TCP/IP Version 4</span></h1> 7. <h2>CHAPTER 1</span><span style="font-weight:bold;"> How to Subnet</span></h2> *RESULT: 1. <p><span style="font-weight:bold;">CCNA Portable Command Guide</span></p> 2. <p><span style="font-weight:bold;">Second Edition Scott Empson</span></p> 3. <p>Cisco Press</p> 4. <p>800 East 96th Street Indianapolis, Indiana 46240 USA</p> 5. <p>Command Syntax Conventions</p> 6. <h1><span style="font-weight:bold;">PART I</span> <span style="font-weight:bold;">TCP/IP Version 4</span></h1> 7. <h2>CHAPTER 1<span style="font-weight:bold;"> How to Subnet</span></h2> Would anyone please teach me how to do this task using a Regular Expressions ? Thank you! |
| 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 | |


