![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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)? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() 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 ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |