Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2013, 10:34 AM   #1
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
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.
Agama is offline   Reply With Quote
Old 12-22-2013, 10:54 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Agama View Post
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.
I believe the REGEX is the same as Sigil used: PCRE

This post from Manichean got e started:
https://www.mobileread.com/forums/sho...58&postcount=1
theducks is offline   Reply With Quote
Advert
Old 12-22-2013, 11:08 AM   #3
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
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.
Agama is offline   Reply With Quote
Old 12-22-2013, 11:13 AM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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
mrmikel is offline   Reply With Quote
Old 12-22-2013, 12:00 PM   #5
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
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 +
Quote:
Originally Posted by Agama View Post
..... (what's PCRE?), .........
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
BobC is offline   Reply With Quote
Advert
Old 12-22-2013, 12:15 PM   #6
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
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.
Agama is offline   Reply With Quote
Old 12-23-2013, 06:10 AM   #7
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
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
DrChiper is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:48 AM.


MobileRead.com is a privately owned, operated and funded community.