Thread: Regex examples
View Single Post
Old 04-25-2014, 03:03 AM   #344
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
How about just this?

‘[^’]*[\n‘]

find left quote followed by any number of non-right-quote characters, until a new line or another left quote.

It will catch multi-paragraph quotes too, but those should be easy to ignore.

If you are searching this in code view and your paragraphs are coded with simple <p>...</p>:

‘[^’]*(</p>|‘)
Jellby is offline   Reply With Quote