I'm trying to use the ASP.Net Regular Expression Validator to validate a URL field. URL is www.tachibana.co.jp/tokyosys.htm
. Validation expression used is ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"
but this is not working. Is there anything wrong with the Regular expression or URL ?
Rules are as below.
- It should validate even if (http or https) is included or not.
- It should also trim the URL before validating.
- It should also validate the sub domain URL's
- It should also validate the URL's to a file on domain or sub domain.
thanks