View Single Post
Old 06-02-2012, 03:59 PM   #28
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,735
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Actually, it looks like the "Find" is working as expected in your EditPad Pro example. It's the replace expression that's failing you there. It appears that JGSoft's regex engine doesn't like the \L\l \U\u \E switches that PCRE's engine uses for its case transformations.

If your replace expression is \L\1\E for Sigil, try using a replace expression of \L1 for EditPad Pro. Looks like EditPad Pro uses \Un \Ln and \In instead. Where n is your backreference number, U is for uppercase, L is for lowercase and I is for Initial capital-the rest lowercase.

So to recap (I recommend copy/paste—there are no spaces in ANY of the following expressions)...
Find (for Sigil or EditPad Pro):
Code:
(?<=\b\p{Lu})([^\s-]+)(?=[^<>]*</text>)
Replace (Sigil):
Code:
\L\1\E
Replace (EditPad Pro):
Code:
\L1
I verified it works with EditPad Lite which is supposed to use the same regex engine as its big brother, EditPad Pro.

Last edited by DiapDealer; 06-02-2012 at 04:08 PM.
DiapDealer is offline   Reply With Quote