tags:

views:

96

answers:

2

Is there a regex for social security number (id) in EU?

+1  A: 

I can tell you from living in the UK, that there is no SSN - but there is the equivalent of a National Insurance Number. From my experience, with the exception of my employer, NOBODY needed this number. With the guidelines inside of the US regarding PII (Personally Identifiable Information), you should not be collecting even partial SSN's wherever possible.

It might be a good idea to look at other methods for data collection and user validation (or whatever your use case may be) before you request SSN, National Insurance Number or any other unique government-issued number.

harwig
A: 

http://en.wikipedia.org/wiki/National_identification_number

Seems like you need to implement a unique validation method for each country's SSN. Regex isn't enough, a fake SSN may look valid, but is not. There's a certain algorithm for generating the whole SSN for each country.

TheMagician