title: preg_match_all get all script tab excluding tabmanager script
body: <p>I want to get all the script that are loaded in my screen </p>
  
  <pre><code>    &lt;script  type="text/javascript"  src="http://url/pub/static/frontend/Magento/luma/en_US/requirejs/require.js"&gt;&lt;/script&gt;
      &lt;script  type="text/javascript"  src="http://url/pub/static/frontend/Magento/luma/en_US/mage/requirejs/mixins.js"&gt;&lt;/script&gt;
      &lt;script  type="text/javascript"  src="http://url/pub/static/frontend/Magento/luma/en_US/requirejs-config.js"&gt;&lt;/script&gt;
      &lt;script  type="text/javascript"  src="http://url/pub/static/frontend/Magento/luma/en_US/mage/polyfill.js"&gt;&lt;/script&gt;
  
  
  &lt;script type="text/x-magento-init"&gt;
  {"*":{}}
  &lt;script&gt;
  &lt;script&gt;
      var BASE_URL = 'http://urlm/index.php/';
      var require = {
          "baseUrl": "http://url/pub/static/frontend/Magento/luma/en_US"
      };
  &lt;/script&gt;
  
      &lt;script&gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
      j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src=
      'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
      })(window,document,'script','dataLayer','GTM-KK5JZ25');&lt;/script&gt;
  </code></pre>
  
  <p>the code i am using is </p>
  
  <pre><code>$conditionalJsPattern = '@(?:&lt;script type="text/javascript"|&lt;script)(.*)&lt;/script&gt;@msU';
  </code></pre>
  
  <p>i want to exclude the googletabmanger code<br>
  googletabmanger code contains some words like googletagmanager , gtm</p>
  
  <p>how can i do that???</p>
  
  <p>thanks in advance</p>