View Single Post
Old 05-19-2009, 11:07 AM   #51
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,561
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by pepak View Post
What my regexp searches for:
- either a space or a >
- apostrophe
- any number of characters (non-greedy - cosume as few as possible)
- any single character except for letters and spaces
- apostrophe
- either a space or a <
OK, in VIM that's:
Code:
\([> ]\)'\(.\{-}[^a-z ]\)'\([< ]\)
( \( and \) to group, \{-} for non-greedy multiple match)
Jellby is offline   Reply With Quote