EmEditor (text editor) Forum Index Regular Expressions
Changing every line inside a block | Register To Post |
| Flat | Previous Topic | Next Topic |
| Poster | Thread |
|---|---|
| jugaor | Posted on: 12/21/2012 12:45 am |
Just popping in ![]() ![]() Joined: 11/29/2007 From: Lima, Perú Posts: 19 |
Changing every line inside a block Hi!
I have a very specific need with (x)html files… I want to replace every start of line between <div> blocks, to exclude'em from the next operations. I tried Search line: <div([^>\n]*>\s*)(<p\>[^>\n]*>[^\n]+?</p>\s*)+</div> Replace: <div\1###\2</div> \1 = optional parameters (i.e. "class") \2 = every line, starting with <p> But after the 'Replace All' operation, EM lets the block with only the last line (starting with ###)… Is there any way to do this? Thanks in advance,
|
| Flat | Previous Topic | Next Topic |
| Subject | Poster | Date |
|---|---|---|
| » |
jugaor | 12/21/2012 12:45 am |
| |
jugaor | 12/26/2012 5:17 pm |
| |
Yutaka | 12/27/2012 1:00 pm |
| Register To Post | |


