I need, The Regex String for only Accept a-zA-Z9-0 And / -
Sorry for the inconvenience, Many Thanks.
I need, The Regex String for only Accept a-zA-Z9-0 And / -
Sorry for the inconvenience, Many Thanks.
Simething like this should work:
/^[-\/a-zA-Z0-9]+$/
the pattern: ^[a-zA-Z0-9/-]+$ should do it.
Example:
var myregexp = /^[a-zA-Z0-9\/-]+$/img;
var match = myregexp.exec(yourString);