jquery - RegEx for not allow space at starting and allow some special characters in middle -


at present have this

^[^a-za-z0-9\\-\\s]+$ 

expression allows special characters. want allow these [- .,$% ] characters in middle.

this not allow space & allowed mention special character

^[a-za-z0-9_@./#&+-\[\]$%]*$ 

for allowing in between not @ starting

^[^-\s][a-za-z0-9_\s-_@./#&+-\[\]$%]+$ 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -