Question regarding php Regular expression filenames
<p><strong>Edit: (here is a better live example:</strong>  </p>

<p><a href="http://vzio.com/upload/reg_pattern.php" rel="nofollow">http://vzio.com/upload/reg_pattern.php</a>)</p>

<p>I am very bad at regular expressions, but I have a regular expression that is working okay, except for one issue:</p>

<pre><code>/\/(.*?).php/
</code></pre>

<p>I only need this regular expression to find things like:</p>

<p><strong>/this-a-valid-page.php</strong> {some words here}  <strong>/anotherpage.php</strong>  { some words here} <a href="http://www.google.com" rel="nofollow">http://www.google.com</a> </p>

<p>but do not find URLs  the problem i am having is that it find this parts of full URLS i want it to avoid these all together. http:/<strong>/www.google.com/page.php</strong>  because i have another function that does something different than the filename reg exp.</p>
