Thread: Regex problem
View Single Post
Old 01-19-2014, 12:06 PM   #5
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
arguably all you need to detect is a punctuation mark which is then followed by a capital letter, with no space inbetween.

so find \.(A-Z])
replace with . \1
& repeat for other punctuation
but then you can have issues with valid structures like U.S.A. or Mr.Smith ( should Mr. be followed by a space, or not ? )

it can be better to just go find a better source!
cybmole is offline   Reply With Quote