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 -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -