Thread: Regex examples
View Single Post
Old 03-06-2013, 06:54 AM   #209
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 2,093
Karma: 2258009
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350: 3 Silver, 2 Blue!; Kobo Glo
Quote:
Originally Posted by mzmm View Post
this should work.

Code:
(<p[^>]*>)(?:\s+)?([^]+?)(.*?)(?:\s+)?(</p>)

\1\2\3\4
That worked like a charm! It caught all instances no matter where the ending quote was located.

Thanks!
Ripplinger is online now   Reply With Quote