View Single Post
Old 01-11-2011, 06:25 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
help with regex for fixing misspellings please

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
cybmole is offline   Reply With Quote