title: check script tag in a string using php
body: <p>i want to check the script tag in an url </p>
  
  <p>For example:
     if url have the script tag the below senario is working fine..</p>
  
  <pre><code>&lt;?php
   $url = 'admin/content/test/&lt;script&gt;';
   preg_match('&lt;script&gt;', $url, $match);
   if (count($match) &gt;= 1) {
    print 'It executes';
   }
  ?&gt;
  </code></pre>
  
  <p>output:  <code>It executes</code></p>
  
  <p>but in my case if the url have a string "product_description" then also above condition matches </p>
  
  <pre><code>&lt;?php
    $url = 'admin/content/product_description/test';
    preg_match('&lt;script&gt;', $url, $match);
    if (count($match) &gt;= 1) {
     print 'It executes';
    }
  ?&gt;
  </code></pre>
  
  <p>output: It executes</p>
  
  <p>Please suggest the right way to check the script tag in an url..</p>