match only extionless url

Posted by user162428 on Stack Overflow See other posts from Stack Overflow or by user162428
Published on 2010-03-25T10:52:08Z Indexed on 2010/03/25 11:03 UTC
Read the original article Hit count: 307

Filed under:
|
|

I want a regex expression which only match extionless url. In otherwords if a extion is present in url then completely ignore it.

/(.+)/(.+) this will match both extionless and with extenion url i want to match only extionless URL

www.site.com/sports/cricket should match

www.site.com/sports/cricket.aspx shouldn't match

Thanks in advance

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about regex