Trying to figure this one out, I'm cleaning up html docs and I am trying to get some formatting done. I need to do the following replacement on about 80-90 sections.
Find
<DIV align=right><B>a bunch of text here</B></DIV>
<DIV> More text here as well</DIV>
replace
<DIV align=right><B>a bunch of text here</B></DIV>
<DIV height="30">More text here as well</DIV>
Basically I just need to change
<DIV>
To
<DIV height="30">
When the line above it starts with <DIV align=right><B>
Any thoughts?
Thanks
-Joe
Chnaging a section based on the line above?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Find: (<DIV align=right><B>.*)\n(<DIV> )
Replace with: \1\n<DIV height="30">
Use the following settings:
-----------------------------------------
[X] Regular expression
Replace All
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Edited note:
ben_josephs posted solution at the same time. As usual, his is better.
Replace with: \1\n<DIV height="30">
Use the following settings:
-----------------------------------------
[X] Regular expression
Replace All
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Edited note:
ben_josephs posted solution at the same time. As usual, his is better.
Last edited by Bob Hansen on Tue Apr 14, 2009 3:38 pm, edited 3 times in total.
Hope this was helpful.............good luck,
Bob
Bob
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm