-1

I need, The Regex String for only Accept a-zA-Z9-0 And / -

Sorry for the inconvenience, Many Thanks.

1
  • In the future, please show some effort on your part for solving your issue. This question makes it appear as if you didn't try anything, which also makes it disruptive to our community. Commented Sep 15, 2011 at 9:55

3 Answers 3

1

Simething like this should work:

/^[-\/a-zA-Z0-9]+$/
1
  • thanks, In a moment, accepts this answer as correct. Commented Sep 15, 2011 at 9:44
1
/^[a-zA-Z9-0\/-]+$/
0

the pattern: ^[a-zA-Z0-9/-]+$ should do it.

Example:

var myregexp = /^[a-zA-Z0-9\/-]+$/img;
var match = myregexp.exec(yourString);

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.