I have a regex like this:
var filter = /^[ A-Za-z0-9_@./#&+-]*$/;
I want this regex to return true if there is no character on input field or if there is character less than 14. I tried using this:
var filter = /^[ A-Za-z0-9_@./#&+-]{0, 15}*$/;
But this regex is never returning true. It always return false even after I satisfy the condition. What's wrong?