title: what is issue in my preg_replace for BB CODE? anyone can help me
body: <p>Friend! check my code first one is not working but second is working why?
  1=> </p>
  
  <pre><code>    $value1 = "[b]PHP 2014[/b]";
      $new1 = "/(\[)([bB])(\])/e";
      $v1 = preg_replace($new1,"'&lt;'.'h1'.'&gt;'",$value1);
      echo $v1; 
  
      /* RESULT::
                  PHP 2014[/b] 
  </code></pre>
  
  <p>2=></p>
  
  <pre><code>    $value2 = "&lt;b&gt;PHP 2014&lt;/b&gt;";
      $new2 = "/(&lt;)([bB])([^&gt;*]&gt;)/e";
      $v2 = preg_replace($new2,"'\\1'.'h1'.'\\3'",$value2);
      echo $v2;
  
      /* RESULT::
                 PHP 2014   */
  </code></pre>