I'm trying to test whether or not an unordered string has '3' in it 5 times.
For example:
var re = /3{5}/;
re.test("333334"); //returns true as expected
re.test("334333"); //returns false since there is no chain of 5 3s
What regex would make the second line return true? If regex is not the best way to test this, what is?
Thanks!