View Single Post
Old 01-11-2011, 06:47 AM   #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,095
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
i have a book in which all instances of words containing ll are ocrrupt. the double l is mis-scanned as a single l + a space i.e. follow has become fol ow.

I tried to construct a regex to use in find + replace so that I could make a replace or find next choice on every hit.

the find is easy \wl w\
but I cant figure the replace syntax to take the found expression, reuse the word boundary characters, and substitute ll for l+space. it's reusing the word boundary detects that is baffling me.

i shoudl probably also make use of the fact the ll occurs only after a vowel ( i think) in correctly spelled english
so something like this would be better for the find expression ?
[AEIOUaeiou]l \[a-z]
i still then need to reuse the "found" characters
Paren around groups. \a_digit to reuse groups found

Match case:
S: ([AEIOUaeiou]l) (\[a-z])
R: \1l \2

But STOP

Gil will not swill beer
will turn into a pile
theducks is online now   Reply With Quote