Thread
:
Regex examples
View Single Post
03-06-2013, 06:54 AM
#
209
Ripplinger
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Quote:
Originally Posted by
mzmm
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
View Public Profile
Find More Posts by Ripplinger
Track Posts by Ripplinger via RSS