Register Guidelines E-Books Search Today's Posts Mark Forums Read

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: 22,263
Karma: 22136456
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, 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
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,086
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
Fanatic
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: 572
Karma: 1156144
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
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 has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmosDrChiper has become one with the cosmos
 
DrChiper's Avatar
 
Posts: 533
Karma: 21054
Join Date: Jun 2011
Device: pc, 600, t1, t2, t3, nexus 7, kobo aura 2, lg 5X
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:06 AM.


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