I basically want a regex expression that only matches if the string doesn't end in ".php".

The only thing I know of would be "[^.php]". But because of how [^x] works, it would also match things ending in "php.", etc.