The php pattern regex syntax stuff really gives me headaches... I'm trying to match all javascript tags except the js tags with id="pagespeed", so that I can move them somewhere else. All I need is the pattern condition, everything else is done.
I'm having this:
$jsPattern = '#<script.*</script>#isUm';
which finds all tags, and now I need to check that the exceptional condition is not true. Should be something like:
~^<script.+id=\"pagespeed\".*</script>]~
The line is probably wrong and needs to be combined with the line above. Would be great if someone could help me as I seem to suck at this PCRE syntax :(