mounica
10-22-2003, 05:36 PM
Hi i am new to javascript. one day i saw code for SSN validation but i couldn't understand that code. I am writing that code over here. Can you explain me what is that.
var matchArr = ssn.match(/^(\d{3})-?\d{2}-?\d{4}$/);
I have one java script book. I searched in that book. I didn't find any thing.
i didn't understand what is d{3}, d{2},d{4}.
What is the purpose of all those. It may be simple question.But please answer to my question. Thanks
var matchArr = ssn.match(/^(\d{3})-?\d{2}-?\d{4}$/);
I have one java script book. I searched in that book. I didn't find any thing.
i didn't understand what is d{3}, d{2},d{4}.
What is the purpose of all those. It may be simple question.But please answer to my question. Thanks