title: preg_match must end with "/"?
body: <p>In the preg_match below, I'm comparing against two static strings, $url and $my_folder...</p>
  
  <pre><code>  $url = get_bloginfo('url')
  //$url = 'http://site.com'
  
    $my_folder = get_option('my_folder');
  //$my_folder = 'http://site.com/somefolder;
  </code></pre>
  
  <p>I'm getting a match when the $my_folder string has a trailing slash</p>
  
  <pre><code> http://somefolder/go/
  </code></pre>
  
  <p>But this does not create a match...</p>
  
  <pre><code> http://somefolder/go
  </code></pre>
  
  <p>However, another problem is that this also matches...</p>
  
  <pre><code> http://somefolder/gone
  </code></pre>
  
  <p>Code is...</p>
  
  <pre><code>$my_folder =  get_option('rseo_nofollow_folder');
  if($my_folder !=='') $my_folder = trim($my_folder,'/');
  $url = trim(get_bloginfo('url'),'/');
  
  preg_match_all('~&lt;a.*&gt;~isU',$content["post_content"],$matches);
  
  for ( $i = 0; $i &lt;= sizeof($matches[0]); $i++){
      if($my_folder !=='')
      {
      //HERES WHERE IM HAVING PROBLEMS
  
          if ( !preg_match( '~nofollow~is',$matches[0][$i]) 
              &amp;&amp; (preg_match('~' . $my_folder . '/?$~', $matches[0][$i]) 
              || !preg_match( '~'. $url .'/?$~',$matches[0][$i])))
          {
              $result = trim($matches[0][$i],"&gt;");
              $result .= ' rel="nofollow"&gt;';
              $content["post_content"] = str_replace($matches[0][$i], $result, $content["post_content"]);
          }
      }
      else
      {
      //THIS WORKS FINE, NO PROBLEMS HERE
          if ( !preg_match( '~nofollow~is',$matches[0][$i]) &amp;&amp; (!preg_match( '~'.$url.'~',$matches[0][$i]))) 
              {
              $result = trim($matches[0][$i],"&gt;");
              $result .= ' rel="nofollow"&gt;';
              $content["post_content"] = str_replace($matches[0][$i], $result, $content["post_content"]);
              }
      }
  }
  return $content;
  </code></pre>