![]() |
#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.
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,920
Karma: 60358908
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 | |
|
![]() |
#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.
|
![]() |
![]() |
![]() |
#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 |
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#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.
![]() |
![]() |
![]() |
![]() |
#7 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,008
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, 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
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Want RegEx to add books to Calibre | huon | Library Management | 0 | 02-02-2012 12:52 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes A Day - The Reading Guide | vivaldirules | Kindle Books | 2 | 12-31-2008 10:19 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes a Day Guide [RTF] | MMascaro | Other Books | 16 | 07-03-2008 11:25 PM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes A Day - The Reading Guide | vivaldirules | BBeB/LRF Books | 3 | 06-25-2008 08:48 AM |
Reference Eliot, Charles W. (editor): Harvard Classics 52: 15 Minutes A Day - The Reading Guide | vivaldirules | IMP Books | 1 | 06-15-2008 11:18 AM |