I am looking for a regex that would match .js in the following URI:
/foo/bar/file.js?cache_key=123
I'm writing a function that tries to identify what kind of file is being passed in as a parameter. In this case, the file ends with the extension .js and is a javascript file. I'm working with PHP and preg_match so I'm assuming this is a PCRE compatible regular expression. Ultimately I'll build on this expression and be able to check for multiple file types that are being passed in as a URI that isn't just limited to js, but perhaps css, images, etc.