05-13-2018, 05:36 AM | #1 |
Connoisseur
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 Code:
I. Group one II. Group two III. Group three IV. Group four EDIT I tried the following: search Code:
(.*?)\. ([A-Z])([A-Z ]*) Code:
\1. \u\2\L\3\E Last edited by Sam Sahara; 05-13-2018 at 06:45 AM. |
05-13-2018, 06:51 AM | #2 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
You can do that with one of the Regex functions. The search should be:
Code:
[IVX]+\. (.*?<) Then select "Regex-funtion" as the mode and "Title-case text" as the function. |
Advert | |
|
Tags |
editor, regex |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
RegEx: anchor problem in editor | DrChiper | Editor | 4 | 04-09-2018 09:15 AM |
regex in calibre editor | mrmikel | Editor | 2 | 02-01-2014 10:39 AM |
Guide to Regex in Calibre Editor vs Notepad++ | Agama | Editor | 6 | 12-23-2013 05:10 AM |
Conversion and Regex Help | thedevilsjester | Calibre | 0 | 07-16-2010 06:10 PM |
Need help with a conversion regex - can't match newline | ereader123 | Calibre | 2 | 03-29-2010 10:58 AM |