![]() |
#16 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 451
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
@meme-- what does (?si) mean? Also, I haven't been able to find anything that lists these kinds of statements (eg (?si), (?s), (?U), etc...), do you know of a website that does?
|
![]() |
![]() |
![]() |
#17 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Try the Sigil User Guide tutorial on Regex...it has links to other sites.
i is ignore case s is dot all |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 451
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Thanks meme. I'm still struggling with understanding part of the regex though, specifically:
Code:
(?![^<>]*>) |
![]() |
![]() |
![]() |
#19 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
|
Quote:
Thanks, Meme. That helped. Don´t need Santa now. However, some tags with < > got erased as well. Have to solve that. Will check if some other tags are in danger as well. |
|
![]() |
![]() |
![]() |
#20 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Sorry, the regex was borrowed from the Regex Examples thread and adapted - you'll need a regex guru around here to explain it.
< > is a bit odd. is an HTML entity not a tag, so it won't be inside < >. Haven't tested it with those. |
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 101
Karma: 202774
Join Date: Apr 2012
Device: none
|
Quote:
I think I have digested the hard fact that in an e-book you cannot have control over how the book looks to the reader. PDF is not the way I want to go here. |
|
![]() |
![]() |
![]() |
#22 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#23 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
At beginning of the Group created to change the characters, have another regex which will alter any entities to include '<' & '>', then also have one at end of group which removes them again.
EDIT: remove space after ';' chars (poxy smilies ![]() EDIT (Jellby): no need to remove anything, you can use the [noparse] tag when posting ![]() Before Find: (&.{,5};) Replace: <\1> After Find <(&.{,5};)> Replace: \1 Last edited by Jellby; 10-07-2012 at 05:39 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF Placeholder for Calibre's Publisher Field | Themus | Calibre | 1 | 09-04-2012 11:56 PM |
Need Help with Search and Replace please! | worley | Conversion | 2 | 07-28-2012 09:29 AM |
Find Replace | unrulyguides | Sigil | 5 | 02-17-2012 08:38 PM |
search and replace - drops blanks in replace ? | cybmole | Conversion | 10 | 03-13-2011 03:07 AM |
regex replace??? | schuster | Conversion | 14 | 01-29-2011 09:02 AM |