I've been researching for a way to do a find and replace for foreign words in BBEdit but I'm having an issue with it. After research I ran across Regex - What would be regex for matching foreign characters? which led me to Regular-Expressions.info and a text block indicated:
Matching a single grapheme, whether it's encoded as a single code point, or as multiple code points using combining marks, is easy in Perl, PCRE, PHP, Ruby 2.0, and the Just Great Software applications: simply use \X.
and when I have a word (yes this is made up for testing) ōallaōallaēēalla
I cannot use [A-Za-z]*
for the entire word instead it works in segments and the only solution I've been able to come up with is something like ([A-Za-z]*\X{1,10})
. Is there an alternative approach that wouldn't be too greedy and would pull the entire word instead of pulling it in segments?