View Single Post
Old 05-13-2018, 05:36 AM   #1
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
Editor: conversion to lowercase with regex

Hallo.

Can you suggest a regex to convert a group of uppercase letters to the same letters but lowercase?

Let say I have the following strings:

Code:
I. GROUP ONE
II. GROUP TWO
III. GROUP THREE
IV. GROUP FOUR
I'm looking for a regex to convert in the following way:

Code:
I. Group one
II. Group two
III. Group three
IV. Group four
---------

EDIT
I tried the following:

search
Code:
(.*?)\. ([A-Z])([A-Z ]*)
replace
Code:
\1. \u\2\L\3\E
but calibre gives: "error:incomplete escape \u at position xx"

Last edited by Sam Sahara; 05-13-2018 at 06:45 AM.
Sam Sahara is offline   Reply With Quote