Thread
:
Regex examples
View Single Post
07-15-2015, 12:46 AM
#
474
eschwartz
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
What about
:
Find:
Code:
(<p(?: [^>]+)?>)(
<a [^>]+>[^<>]+</a>
)(
(?:(?!</?[ap](?: [^>]+)?>).)*
)(?=</p>)
Replace:
Code:
\1\2\3\2
I should've made it find text without "a"
or "p"
tags.
EDIT: No, not sure what I was thinking of at all.
That makes no sense...
Last edited by eschwartz; 07-17-2015 at
12:13 AM
.
eschwartz
View Public Profile
Find More Posts by eschwartz
Track Posts by eschwartz via RSS