title: PHP - preg_match - How to match a string upper/lower case with anything before or after it?
body: <p>I have a part of a function that goes like this: </p>
  
  <pre><code>if (preg_match("#\bscript\b#",$userInput))
  {
      $bannedWord = 'script';
      logHax();
      return TRUE;
  }
  </code></pre>
  
  <p>This is causing a problem for what I am trying to accomplish because it will only match the exact word "script" and not variations of it, like "ScriPt" or "<code>&lt;script&gt;</code>".</p>
  
  <p>What I would like to have is the examples of the not matched strings along with the original string return true.</p>
  
  <p>Could someone provide me with a bit of understanding on this matter.</p>
  
  <p>Also any tutorials that cover something like this would be greatly appreciated,</p>
  
  <p>Thank you!</p>