I want a regex expression that matches only a URL without an extension. In other words, if the extension is present in the url, then completely ignore it.
/(.+)/(.+) this will match the URL with or without the extension.
www.site.com/sports/cricket must match
www.site.com/sports/cricket.aspx must not match
Thanks in advance
source
share