I want to write a regex to match whether my url has gmt.php or not. For example:
If my url is http://example.com/gmt.php?a=1 it is true
If my url is http://example.com/ac.php then it is false
I tried:
/^([a-z0-9])$/.test('gmt.php');
but its not perfect. And yes I need only regex not substring match indexOf
Thanks.