View Single Post
Old 02-20-2012, 09:29 AM   #3
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,566
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by flameproof View Post
Please let me add one more common problem: wrong hyphen (probably from the PDF)

Search: (\w)-(\w)
replace with: \1\2

How can I make it case sensitive? I like to correct 'ele-phant' but not 'John-Bob' ?
I think a brute force approach would be
([a-z]\w)-(\w)
PeterT is offline   Reply With Quote