N
Noozer
I have a variable named "acct". I first want to remove any "-" characters
from it's value. After this I want to verify that we have only exactly 12
digits in the variable.
Unfortunately I'm pretty green as far as using RegEx.
/\d{12}/.test(acct); should do the second part, but how do I do the first?
from it's value. After this I want to verify that we have only exactly 12
digits in the variable.
Unfortunately I'm pretty green as far as using RegEx.
/\d{12}/.test(acct); should do the second part, but how do I do the first?