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 09-26-2025, 01:03 PM   #1
zakman
Enthusiast
zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.zakman ought to be getting tired of karma fortunes by now.
 
Posts: 36
Karma: 2119794
Join Date: Jan 2016
Device: Kindle Paperwhite 2019
Help with simple regex for find and replace

Making some edits to my copies of Joel Shepherd's Spiral Wars series - in particular, capitalizing the name of one of the alien races (the Alo) throughout the book.

What's a regex that would find all instances of 'alo', just the three letters, and ignoring its appearance elsewhere (such as in 'alone', etc)?
zakman is offline   Reply With Quote
Old 09-26-2025, 01:12 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,205
Karma: 60406678
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Simpler (maybe)
Open the spell checker: All words
Select your word an the left (you can sort by column), Enter the replacement (instead of selecting from list) on the right
theducks is offline   Reply With Quote
Advert
Old 09-26-2025, 03:43 PM   #3
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 173
Karma: 1497966
Join Date: Jul 2021
Device: N/A
Very clever, theducks :-). That's the easy way.

Otherwise, as a direct answer to the OP, this regex will select "alo" and only that:
\balo\b
(\b means word boundary)
lomkiri is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New to regex find and replace! ksimpson1986 Sigil 2 11-06-2016 11:29 AM
regex cannot find to replace eschwartz Editor 11 02-03-2014 11:00 PM
Regex find and replace SanatyrZeo Sigil 5 10-29-2012 07:03 AM
RegEx find and replace iblesq Sigil 1 01-10-2011 09:26 PM
REGEX find and replace help please potestus Sigil 13 09-18-2010 04:14 PM


All times are GMT -4. The time now is 10:37 PM.


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