ReReplacer

Change Heading in Modules

10 months 4 days ago #77832

Jaime's Avatar Jaime

Hello,
I have created an item in Rereplacer:
Search:
<h2 class="title">

Replace:
<h3 class="title">

And it works well, but how can I add the close tag </h3>, please keep into account the text inside the replacement should be keeped.

Thanks.
Jaime.

10 months 4 days ago #77833

Peter van Westen's Avatar Peter van Westen Admin

You will need to use Regular Expressions:

<h2 class="title">(.*?)</h2>
Replace
<h3 class="title">\1</h3>

10 months 4 days ago #77834

Jaime's Avatar Jaime

Hi Peter,
Mmm.. no, now it is not working.
With just the beginning tag it works well, but with the closing tag and the regular expressions doesn't work.
goo.gl/ApBsBy

Are you sure the regular expression is Ok? ... sorry I don't understand well the regular expressions.

10 months 4 days ago #77835

Peter van Westen's Avatar Peter van Westen Admin

Yes, should be good.

Can you give me (super) admin access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Hidden text' button in the forum editor to hide the confidential information.

10 months 4 days ago #77837

Jaime's Avatar Jaime

Hi Peter,

Confidential information:
(hidden)


This page for example:
www.tecnoseguro.com/tutoriales/mantenimi...tadores-draytek.html

goo.gl/frRTZw

10 months 4 days ago #77838

Peter van Westen's Avatar Peter van Westen Admin

After switching back the 'Enable in HTML tags' option to 'yes' it is working.

10 months 4 days ago #77839

Jaime's Avatar Jaime

Great Peter, thanks!