Link to home
Start Free TrialLog in
Avatar of Fern2
Fern2Flag for Iceland

asked on

Regular expression "Replace <p> and </p>

Hi.

How can I replace  <P and whatever text MS word puts here> with "" (nothing)
and
How can I replace </P> with "<br><br>" with Regular expression?

Regards, Fern
Avatar of Dain_Anderson
Dain_Anderson

Try this;

<CFSET Content = REReplaceNoCase(Content, "<p([^>]*)>", "<br><br>", "ALL")>

HTH,

-Dain
ASKER CERTIFIED SOLUTION
Avatar of Dain_Anderson
Dain_Anderson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fern2

ASKER

Thx a million