![]() |
#1 |
Member
![]() Posts: 10
Karma: 12
Join Date: May 2011
Device: Kindle
|
Find Replace
My HTML is coming in like this:
<p> If there was a stranger he was nearly sure to be suspicious, and when he got his breath again he would ask her what it meant. And she always told him. He was never expecting this but thought he would catch her; so when she told him, he was the one that looked ashamed, whereas he had thought it was going to be she. </p> <strong> <br clear="ALL"/> </strong> <h1> CHAPTER II </h1> I need to remove the br clear="ALL", but I cannot do a find replace because the line is broken up and SIGIL won't automatically correct this (sometimes) How do I write this in the Find/Replace to: Find: <strong> <br clear="ALL"/> </strong> Replace with : nothing I am using 5.2, Mac OS 7 (BTW, this worked fine in 4.2, but since 4.9 I can't get it to correct) Thanks, |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
A regex search for the following should work:
<strong>\n<br clear="ALL"/>\n</strong>\n If there are any spaces on the end of the lines, you will need to add them in. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 120
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
|
I don't know if Mac vs. PC makes any difference, but I would use:
Find: <strong>\s+<br clear="ALL"/>\s+</strong> Replace: nothing Set to: Regex |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 10
Karma: 12
Join Date: May 2011
Device: Kindle
|
Brilliant! GeneS worked perfectly -- my customers will be happy. Thank you thank you!
|
![]() |
![]() |
![]() |
#5 |
Berti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Find linebreaks in normal mode
I noticed that regex is actually not needed to find some static text with linebreaks
- Open the Search/Replace Box - Then copy/paste the text into the "Find"-field (this will include all line-breaks, but they aren't visible) Sigil will find the text in "normal"-mode and replace it if neccessary. Marking the text first and then open the s/r box with ctrl+f will not work. I don't know if this will work on other os than xp as well, but it's a funny thing |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
What the Dog Saw
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 311
Karma: 981684
Join Date: Jul 2008
Location: Dunn Loring
Device: Sony PRS-650, Surface3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx find and replace | iblesq | Sigil | 1 | 01-10-2011 09:26 PM |
Find / replace | bremler | Sigil | 6 | 12-17-2010 03:26 PM |
find and replace, epub | ampsonic | Reading and Management | 3 | 03-02-2010 03:20 AM |
Crashes on find / replace all | mr ploppy | Sigil | 1 | 02-03-2010 12:35 PM |
Using Find/Replace with BD | Otter | Sony Reader | 7 | 02-28-2009 01:49 PM |