12-22-2013, 10:34 AM | #1 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Guide to Regex in Calibre Editor vs Notepad++
I've been using Tweak Book and Notepad++ to edit ePubs from within calibre but the new integrated book editor is a much better option, (great work Kovid!), but I would just like to know whether the flavour of regex used in this editor is the same as in Notepad++ or whether there is an online guide to calibre's editor regex.
|
12-22-2013, 10:54 AM | #2 | |
Well trained by Cats
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
This post from Manichean got e started: https://www.mobileread.com/forums/sho...58&postcount=1 |
|
Advert | |
|
12-22-2013, 11:08 AM | #3 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Not used Sigil, (what's PCRE?), but thanks for Manichean's post. I'll have a play with the regex features that I use in Notepad++ and see what happens in calibre.
|
12-22-2013, 11:13 AM | #4 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
"Notepad++ regular expressions use the standard PCRE (Perl) syntax, only departing from it in very minor ways. "
(From the Notepad ++ wiki) So it should be all but identical. From the PCRE website: The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5 |
12-22-2013, 12:00 PM | #5 |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
And in case you haven't spotted it - PCRE = PERL Compatible Regular Expression. ( http://en.wikipedia.org/wiki/PCRE )
It helps to remember what it is if you know what the abbreviation stands for. BobC |
Advert | |
|
12-22-2013, 12:15 PM | #6 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Thanks for the infos. Looks like a nice easy transition to calibre's new integrated book editor and the preview pane is a real bonus. Feels like an early Christmas present.
|
12-23-2013, 06:10 AM | #7 |
Bookish
Posts: 969
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
|
BTW, Kovid indicated that calibre uses the regex engine which can be found here https://pypi.python.org/pypi/regex
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Want RegEx to add books to Calibre | huon | Library Management | 0 | 02-02-2012 01:52 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes A Day - The Reading Guide | vivaldirules | Kindle Books | 2 | 12-31-2008 11:19 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes a Day Guide [RTF] | MMascaro | Other Books | 16 | 07-04-2008 12:25 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes A Day - The Reading Guide | vivaldirules | BBeB/LRF Books | 3 | 06-25-2008 09:48 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes A Day - The Reading Guide | vivaldirules | IMP Books | 1 | 06-15-2008 12:18 PM |