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 02-01-2014, 08:46 AM   #1
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
regex in calibre editor

I am having trouble getting regex shown in other sections of mobileread to work in the editor. I doubt it is a fault of the editor, but just a flavor that doesn't match up.

I am trying to capitalize a lower case letter in the middle of a name, such as Charles r. Hansen.

using (space)\U\1(space) in replace gives an error.
mrmikel is offline   Reply With Quote
Old 02-01-2014, 10:04 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: 29,772
Karma: 54401244
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 mrmikel View Post
I am having trouble getting regex shown in other sections of mobileread to work in the editor. I doubt it is a fault of the editor, but just a flavor that doesn't match up.

I am trying to capitalize a lower case letter in the middle of a name, such as Charles r. Hansen.

using (space)\U\1(space) in replace gives an error.
What is your Capture?
remember to escape the period: <space>([a-z]\.)<space>
theducks is online now   Reply With Quote
Advert
Old 02-01-2014, 10:39 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,838
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
\U is not supported by the regex engine the editor uses. In an upcoming release, I will be adding the ability to define actual functions as the replacement text which will allow you to do all sorts of sophisticated text processing. Uppercasing being just one of them.
kovidgoyal 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
What is format to search for unicode in calibre with regex? mrmikel Editor 4 01-15-2014 06:33 AM
Guide to Regex in Calibre Editor vs Notepad++ Agama Editor 6 12-23-2013 05:10 AM
Little F&R RegEx help to clean a Calibre conversion phossler Sigil 4 09-03-2012 08:17 PM
Square brackets in filename breaking Calibre Regex? ccsrsj Library Management 2 06-02-2012 07:38 AM
Want RegEx to add books to Calibre huon Library Management 0 02-02-2012 12:52 AM


All times are GMT -4. The time now is 11:04 AM.


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