10-06-2012, 12:20 PM | #16 |
Addict
Posts: 320
Karma: 56788
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?
|
10-06-2012, 12:23 PM | #17 |
Sigil developer
Posts: 1,275
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 | |
|
10-06-2012, 02:20 PM | #18 |
Addict
Posts: 320
Karma: 56788
Join Date: Jun 2011
Device: Kindle
|
Thanks meme. I'm still struggling with understanding part of the regex though, specifically:
Code:
(?![^<>]*>) |
10-06-2012, 02:25 PM | #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. |
|
10-06-2012, 02:31 PM | #20 |
Sigil developer
Posts: 1,275
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 | |
|
10-06-2012, 02:32 PM | #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. |
|
10-07-2012, 03:24 AM | #22 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
10-07-2012, 05:10 AM | #23 |
Guru
Posts: 655
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 Tools | Search this Thread |
|
Similar Threads | ||||
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 |