Hey guys, I have the following regxp .match()
what i want to do with this regxp is with the /**/ and what i want to do is make it match a 1 didgit number or a 2 didgit number for example
10 jordan30001[CD]
or
1 jordan30001[CD]
how would i acomplish this i know that i could change /**/ to \d\d but that would only find 2 numbers and not 1 if theres only 1
Code:
debugtest = debugtest.match(/(/**/ jordan30001[CD])/)[1];
10 jordan30001[CD]
or
1 jordan30001[CD]
how would i acomplish this i know that i could change /**/ to \d\d but that would only find 2 numbers and not 1 if theres only 1
Comment