This is not working I am using following code to validate email for e.g
"email":{
"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
"alertText":"* Invalid email address"},
On this way I want to validate text box by regular expression. It should be Null or valid domain name like Google.com, example.com.