Social Security Numbers

The Protector stage library includes the following category functions for social security numbers. You can use these functions only in stages included in the Protector stage library.
US_SSN:areaNumber()
Returns the area number of United States social security numbers. The area number is the first three digits of a social security number.
Return type: String.
For example, when evaluating 333-22-1111, this function returns 333.
US_SSN:groupNumber()
Returns the group number of United States social security numbers. The group number is the fourth and fifth numbers of the social security number.
Return type: String.
For example, when evaluating 333-22-1111, this function returns 22.
US_SSN:serialNumber()
Returns the serial number of United States social security numbers. The serial number is the last four digits of the social security number.
Return type: String.
For example, when evaluating 333-22-1111, this function returns 1111.
US_SSN:std()
Returns social security numbers in the following standard format:
<area number>-<group number>-<serial number>
such as: xxx-xxx-xxxx.
Return type: String.
For example, when evaluating 123456789 , this function returns 123-45-6789.