Previous Topic: TransformExNext Topic: Inside %CCN%


Validation

Extra validation routines can be specified to a labeled region. Use this attribute to help ensure that the expression only matches if the labeled region also passes a validation test.

This attribute has the following syntax:

%<MyVar validate=”{CCN|SSN}”>% ...%</A>

Verifies that the extracted text written to the %<MyVar>% matches the specified validation routine.

The available validation routines are:

CCN

Matches a credit card number that is from 12 through 20 digits and passes the Lunn checksum.

Example: This expression validates whether the number written to the %<CreditCard>% variable is a valid credit card number:

%<CreditCard validate=”CCN”>% * %</CreditCard>%

SSN

Matches an allocated US Social Security Number in the supplied highgroup file.

SSN requires access to the list of valid Social Security Numbers, as issued in the highgroup.txt file and available here at http://www.ssa.gov/employer/highgroup.txt.

In CA Data Protection, this file is installed in the CA Data Protection file system as SSN.dat.

In multiview, CA Data Protection looks for “highgroup.txt” in the same directory as multiview.exe.