I need a RegExp which accepts only accepts slashes in text box?

A valid RegExp could be:
(If you provide a little piece of your code we could help more)

var reg = /^(\d{4}\/\d{2}\/\d{2})$/;

Four digits + a slash + two digits + a slash + two digits

Leave a Comment