Social Security Number Macro

Applies to TestComplete 15.62, last modified on March 19, 2024

Description

The Social Security Number macro is used to insert social security numbers into strings generated with the Custom String generator.

The macro is an analog of the Social Security Number data generator.

Syntax

The macro is specified using the following regular expression:

[0-9]{3}-[0-9]{2}-[0-9]{4}

This regular expression specifies the string that contains five digits. You can change this regular expression if necessary. For more information on the syntax of regular expressions, see Supported Regular Expressions.

Parameters

The macro has no parameters.

Examples

The following examples demonstrate the use of the Social Security Number macro:

  • [0-9]{3}-[0-9]{2}-[0-9]{4}

    This regular expression specifies social security numbers used in the United States.

  • [1-9]{3}-[1-9]{2}-[1-9]{4}

    This regular expression specifies social security numbers that do not contain zeros.

Remarks

See Also

Macro Reference
Custom String Generator Rules
Custom String Generator
Custom-String Generator - Supported Regular Expressions
Social Security Number Generator
Using Data Generators
Generate Data Dialog

Highlight search results