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
Post a Comment