Thread: Regex examples
View Single Post
Old 04-25-2014, 07:48 AM   #346
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Change * to *? and it will only catch until ‘bout.

Still, you don't want to miss any of those, you could also have:

‘em the cat sat on the mat ‘foo ‘bout

My suggestion is running either of the regexes and replace every instance with something else (say ¬rsquo; or ¬lsquo;, literally) so you can be sure you have checked all of them and they don't stand in the way. Once there's nothing left, replace them back with ‘ and ’.
Jellby is offline   Reply With Quote