I don't have much knowledge about working of regex but I have been trying to solve this from last many hours but could not get solution of it`.
regex /^[]{13,17}$/i
I have a text-box and text-box value should be greater than or equal to 13 and less than or equal to 17.
Ex.
var value - "12345678901234".(textbox value and length is 14)
if (value.match(regex)) {
alert("Correct value");
} else {
alert("error");
}
Now, length is 14, it means condition should be true. But match function always return null. I have tried also test function, but it doesn't give desired result.
^.{13,17}$.[]means nothing.[]by.; checkalert("1234567890123".match( /^[]{13,17}$/i) + " " + "1234567890123".match( /^.{13,17}$/i))and you will see the difference.[]with[^]or[\s\S]. Can you replace each[]with[\s\S]/[^]?