I am trying to perform RegularExpression validation using Javascript.
var pattern = /^[&._-a-zA-Z0-9]+/
var a = document.getElementById('TEXTBOX11').value
if (!pattern.test(a))
{
alert(
"Found!")
}
When it is searching, if it finds special characters at the start of the string, it display's alert. If the special character is at the end of string or middle, it doesn't. can someone help me how to do it.
Go to the complete details ...