RegEx to prohibit some special characters -
what proper regular expression exclude or prohibit
< > * % : & \
i trying
^[^<>*%:&\\]$
but not seem work. please help, thanks.
it correct single characters. if want validate longer strings,
^[^<>*%:&\\]*$
if empty strings okay, or if not,
^[^<>*%:&\\]+$
Comments
Post a Comment