Support » Plugin: Real-Time Find and Replace » When I activate RegEx checkbox, website is broken

  • I try to find via RegEx this:
    /<h1 class=\”jeg_post_title\”>(.*)</h1>/

    And I want to replace it with this:
    /<div class=\”jeg_post_title\”>(.*)</div>/

    Goal is to change any <h1 class=”jeg_post_title”>WHATEVER IS IN BETWEEN</h1> to <div class=”jeg_post_title”>WHATEVER IS IN BETWEEN</div> on the whole website.

    Can you help me please?

    When I activate it, WordPress shows empty page on frontend, broken.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter


    Maybe something else is the Problem. As soon as I activate RegEx checkbox my site stops working.

    Even this crashes the site:

    /</h1>/ as soon I have RegEx active…

    What could cause the issue? Thank you

    Thread Starter


    Got it working this way:

    #<h1 class=”jeg_post_title”>(.*)</h1>#m

    Replace with:
    <div class=”jeg_post_title”>$1</div>

    Thank you for your great plugin!

    Plugin Author Marios Alexandrou


    When using regex be sure to escape special characters. For example, the forward slash (other than the starting and ending delimiters) would need to be preceded with a backward slash. So / would be written as \/.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When I activate RegEx checkbox, website is broken’ is closed to new replies.