title: pcre(php) regular expression to match url
body: <p>I am working on SEO thing in project to match best URL from possible url's, so 
  i am trying to match request url using <code>preg_match()</code> function from url pattern</p>
  
  <p>can anyone please help me create regular expression to match only specific urls from all urls, i am newbie in Regular expression, please see my stuff</p>
  
  <p>following <strong>3</strong> urls</p>
  
  <blockquote>
    <p>1). <a href="http://domain.com/pressrelease/index/1" rel="nofollow">http://domain.com/pressrelease/index/1</a><br/>
    2). <a href="http://domain.com/pressrelease/123" rel="nofollow">http://domain.com/pressrelease/123</a><br/>
    3). <a href="http://domain.com/pressrelease/blah" rel="nofollow">http://domain.com/pressrelease/blah</a></p>
  </blockquote>
  
  <p>i want to match <code>2,3</code> urls, urls have not contain of <code>index/(:num)</code> after <code>pressrelease</code></p>
  
  <p>i create this regular expression but it's does not working </p>
  
  <pre><code>(\/pressrelease\/)+((?!index).)*$
  </code></pre>