I want to search for every script tag in a certain content except scripts with type="text/x-template".
This pattern matches all the scripts:
'/(\\s*)<script(\\b[^>]*?>)([\\s\\S]*?)<\\/script>(\\s*)/i'
But I don't know how to make it to exclude "text/x-template".
Thank you.