I am trying to match the string ".php" but only when "share" is not in front of the ".php". So, for example, "test.php" should be found, but "share.php" should be skipped.
I have this RegEx but it seems to not be working when I think it should. I think the "." is what is messing me up.
(?!.*share)\.php
Can anyone give some assistance?