I need to implement URL Validation using Javascript in MVC4. Here is my code .
var regexp = "^http(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$";
return regexp.test(URLValue);
but its not working in MVC 4. i thought test operation is not supported for MVC. Is there any solution to implement validation using Javascript.