|
|
#16 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 286
Karma: 56788
Join Date: Jun 2011
Device: Kindle
|
__________________
When some wild-eyed, eight-foot-tall maniac grabs your neck, taps the back of your favorite head up against the barroom wall, and he looks you crooked in the eye and he asks you if you've paid your dues, well, you just stare that big sucker right back in the eye, and you remember what ol' Jack Burton always says at a time like that: "Have ya paid your dues, Jack?" "Yessir, the check is in the mail." |
|
|
|
|
|
#17 |
|
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,261
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
__________________
See the Sigil User Guide and its tutorials for details about Sigil. |
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 286
Karma: 56788
Join Date: Jun 2011
Device: Kindle
|
Thanks meme. I'm still struggling with understanding part of the regex though, specifically:
Code:
(?![^<>]*>)
__________________
When some wild-eyed, eight-foot-tall maniac grabs your neck, taps the back of your favorite head up against the barroom wall, and he looks you crooked in the eye and he asks you if you've paid your dues, well, you just stare that big sucker right back in the eye, and you remember what ol' Jack Burton always says at a time like that: "Have ya paid your dues, Jack?" "Yessir, the check is in the mail." |
|
|
|
|
|
#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,261
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.
__________________
See the Sigil User Guide and its tutorials for details about Sigil. |
|
|
|
|
|
#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: 5,140
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
|
|
|
|
|
|
#23 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 552
Karma: 23783
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300
|
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 |