title: PHP BB Code noparse tag
body: <p>I'm trying to write a BB Parser.
  My code looks like that:</p>
  
  <pre><code>$string = preg_replace("/\[B\](.*)\[\/B\]/Usi", "&lt;b&gt;\\1&lt;/b&gt;", $string);
  $string = preg_replace("/\[I\](.*)\[\/I\]/Usi", "&lt;i&gt;\\1&lt;/i&gt;", $string);
  ....
  </code></pre>
  
  <p>I want to check if there are any substrings in $string that contain the noparse tag and skip the part where it would parse the other tags for that substring. Now i have no idea how to do that.
  Any suggestions?
  Thanks in advance</p>