- Posted by
- That's great :) Thank you so much... It would be okay for me. Now that considering that would be "proper" formated HTML, we can assume every <div> has a </div> itself... So counting <div>'s or </div>'s will give us appropiate number of (not nested divs) but time we should repeat our replace. :) Than...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- SiSL
Jun 07, 2008
- OK, this makes things a bit complicated since nested structures don't lend themselves well for regexes. If the tags will not always be at column 1, will at least the opening and closing tag be at the same column? From your second example, I fear they might not be... Another question for clarificati...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- SiSL
Jun 07, 2008
- A few questions: 1. Am I understanding you correctly that you want to remove everything between the outermost <div> and </div> tags? 2. Will those tags always be at the start of the line (column 1)? 3. When you say "codes such as <div> in this case", what other cases do you expect? 1. Yes, anything...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- SiSL
Jun 07, 2008
- Greetings, I have text like following example: <div> <b>parent text 1</b> <div> <i>child text1</i> <div> <u>child text 2</u> </div> </div> </div> <i>normal text 1</i> <div> parent text 2 <div> child text 3 </div> </div> normal text 2 I want to replace it so that I can only see <i>normal text 1</i> &...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- SiSL
Jun 07, 2008