|
|
#1 |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2012
Device: kindl, android phone and ipad, mainly uing kindle
|
using regular expressions
I am looking for some advice on using a regular expressions when converting books in Calibre
I want to search for a series of words and identify them if they start with a lowercase letter or if they start with an uppercase letter. Four example Changing 'cute' to 'sweet' and changing 'Cute' to 'Sweet' Is there a way to specify this as part of a regular expression without having to duplicate each search and replace entry? Thanks |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,281
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IN CONVERSIONS
That seems to be a great way to the documentMaybe in the Editor, where you could Find > Replace-Next or Find (again) Just some ideas: You can have a list of words to match Code:
(word1|word2|word3) (if no one comes up with a better way) Use the Spell checker (in the Editor) ALL WORDS showing:Find your word on the left, type Your Replacement: Apply that <repeat for each word> |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,036
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
There's a Sigil plugin that was originally targeted at cleaning up errors PDF scans, but I have a vague recollection of someone using it to clean-up profanities, which is similar. See ==>> Sigil Plugin Index
BR Last edited by BetterRed; 02-02-2020 at 04:07 PM. |
|
|
|
|
|
#4 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,216
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
All about using regular expressions in calibre Quick reference for regexp syntax bernie |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regular Expressions Help | lauralein | Library Management | 1 | 11-12-2013 08:05 PM |
| Regular Expressions help | deamonfruba | Library Management | 2 | 06-02-2012 03:09 AM |
| Help with regular expressions | MostlyCarbon | Library Management | 0 | 02-04-2012 04:00 PM |
| Help with regular expressions | jevonbrady | Library Management | 6 | 06-21-2011 11:16 AM |
| Help with Regular Expressions | ghostyjack | Workshop | 2 | 01-08-2010 12:04 PM |