Plugin

Archived
Forum
(read-only)

Tom Jaeger does not actively monitor this forum
(but you can still get help from other EE users).

Low Replace

ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Tom Jaeger

     

You must be logged in to post.

a little help with regex

General

stephanosuh
stephanosuh

I’m trying to find any <img > and strip the tags while leaving the enclosed <img > content intact. Can I do this using regular expressions and this plug-in?

stephanosuh
# 1
stephanosuh

Sorry, it should be:

<p><img></p

That turns into:

<img
L2
# 2
L2

I have a similar question.  I would like to strip out the paragraph tags that surround a Wygwam field and replace them with H3.

This was my initial attempt but I’m getting a Low Replace error on the front end when I try to view the page.

{exp:low_replace find=”<p>|</p>” replace=”<h3>|</h3>” multiple=“yes”}
    {testimonials_short}
{/exp:low_replace}

Thanks.
Lori