Can someone write a regex that can match only lowercase urls that can have a-z letters, 0-9 numbers and -, http:// (https is not required), www. and doesn't have default.aspx?
This is a url that regex must match:
http://www.somedomain.net/news/148/some-text-to-act-as-news-title.aspx
or
http://subdomain.somedomain.net/news/148/some-text-to-act-as-news-title.aspx (withour www.)
Regex must not match any url that have uppercase letters and default.aspx
I did some basic regex that match some of the urls.
Thank you.
EDITED
This is my attempt: [a-z0-9]{1,}-*
Only matches single words, words with - and numbers
EDITED AGAIN
Thanks guys to all of you.