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 07-24-2014, 10:57 AM   #1
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 517
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
Question Change Case with Regex Problem

Dear all,

I find this
Code:
\. (\p{Lowercase_Letter})
replace with this
Code:
. \U1
But it returns error.
nqk is offline   Reply With Quote
Old 07-24-2014, 11:25 AM   #2
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 517
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
". \U\1" works with Sigil, though. But not with Editor.
nqk is offline   Reply With Quote
Advert
Old 07-24-2014, 12:11 PM   #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: 44,108
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
\U is not a supported operator by the regex engine calibre uses.
kovidgoyal is offline   Reply With Quote
Old 07-25-2014, 04:04 PM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@kovid

Possibly you could add operator icons to the Text Formatting Toolbar to

UPPER CASE
lower case
Proper Case
First letter only

all selected text not within < > pairs??

Potential workaround
phossler is offline   Reply With Quote
Old 07-25-2014, 10:38 PM   #5
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: 44,108
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I've said before, there will be a function mode for search and replace, that will allow doing this and many, much more powerful operations.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex problem John2011 Sigil 8 01-21-2014 02:12 AM
Regex for Title Case or Sentence case? Turtle91 Sigil 3 01-19-2013 01:36 PM
RegEx to change but not all phossler Sigil 2 01-11-2013 09:30 AM
Case-sensitive search in Regex mode? Doitsu Sigil 6 01-04-2013 06:44 AM
Regex Problem huebi Sigil 3 05-10-2011 04:32 AM


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


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