Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This will remove the jQuery text, no matter what numbers are present. It will also take out the excessive space at the end of the tags which is left after the jQuery tags were removed.</p> <pre><code>$old = '&lt;H2 editing="false" revert="Projects:" jQuery1332198888840="12" jQuery1332199361841="12" jQuery1332199407617="12"&gt;ProjectsTesting&lt;/H2&gt; &lt;UL class=list1 jQuery1332198888840="17" jQuery1332199361841="17" jQuery1332199407617="17"&gt; &lt;LI jQuery1332198888840="16" jQuery1332199361841="16" jQuery1332199407617="16"&gt;&lt;A href="#" jQuery1332198888840="15" jQuery1332199361841="15" jQuery1332199407617="15"&gt;Praesent vestibulum molestie &lt;/A&gt; &lt;LI jQuery1332198888840="19" jQuery1332199361841="19" jQuery1332199407617="19"&gt;&lt;A href="#" jQuery1332198888840="18" jQuery1332199361841="18" jQuery1332199407617="18"&gt;Aenean nonummy &lt;/A&gt; &lt;LI jQuery1332198888840="21" jQuery1332199361841="21" jQuery1332199407617="21"&gt;&lt;A href="#" jQuery1332198888840="20" jQuery1332199361841="20" jQuery1332199407617="20"&gt;Hendrerit mauris phasellus &lt;/A&gt; &lt;LI jQuery1332198888840="23" jQuery1332199361841="23" jQuery1332199407617="23"&gt;&lt;A href="#" jQuery1332198888840="22" jQuery1332199361841="22" jQuery1332199407617="22"&gt;Porta fusce suscipit varius &lt;/A&gt; &lt;LI jQuery1332198888840="25" jQuery1332199361841="25" jQuery1332199407617="25"&gt;&lt;A href="#" jQuery1332198888840="24" jQuery1332199361841="24" jQuery1332199407617="24"&gt;Cum sociis natoque&lt;/A&gt; &lt;LI jQuery1332198888840="27" jQuery1332199361841="27" jQuery1332199407617="27"&gt;&lt;A href="#" jQuery1332198888840="26" jQuery1332199361841="26" jQuery1332199407617="26"&gt;Penatibus et magnis dis&lt;/A&gt;I &lt;LI jQuery1332198888840="29" jQuery1332199361841="29" jQuery1332199407617="29"&gt;&lt;A href="#" jQuery1332198888840="28" jQuery1332199361841="28" jQuery1332199407617="28"&gt;Parturient montes&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;'; //This will erase all the jQuery strings. $new = preg_replace('/jQuery\d+="\d+"/', '', $old); //This will take out the extra spaces at the end of the tags that was left open. $new = preg_replace('/\s+&gt;/', '&gt;', $new); echo $new; </code></pre> <p>For more information see: <a href="http://php.net/manual/en/function.preg-replace.php" rel="nofollow">http://php.net/manual/en/function.preg-replace.php</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload