tags:

views:

39

answers:

1

below Syntax var re = /(?!^[0-9]$)(?!^[.|+(){}]$)(?!^[a-zA-Z]$)^([a-zA-Z0-9]{6,15})$/; But it doesn't validate the special symbols?

A: 
/(?!^[0-9]*$)(?!^[.|*+(){}\[\]]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9.|*+(){}\[\]]{6,15})$/
Mark Byers
Thanks, But It Doesn't take the Special Symbols I checked with this word: ABac134567]
vasanth
Which special symbols do you want to allow exactly? Your question doesn't make it clear.
Mark Byers
Thanks, Using this Aa12345+6 working fine
vasanth