1 Replies - 1359 Views - Last Post: 16 April 2009 - 09:35 PM

#1 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Valid U.S. SSN (Social Security Number)

Posted 08 April 2009 - 09:22 PM

Description: Regular expression pattern for matching a valid US social security number
^([0-6]d{2}|7[0-6]d|77[0-2])([ -]?)(d{2})2(d{4})$

Is This A Good Question/Topic? 0
  • +

Replies To: Valid U.S. SSN (Social Security Number)

#2 cdy2k2002  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 15-February 07

Re: Valid U.S. SSN (Social Security Number)

Posted 16 April 2009 - 09:35 PM

Hello Friends, SSN - 722-23-5656 is valid but 000-23-5656 is invalid. Here is a good example which late you how to tackle this problem. Also get complete code for ASP.NET, VB.NET and C#.NET implementation Regular Expressions with .net for U.S. Social Security Numbers. Please check:- http://www.tipsntrac...ty-numbers.html
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1