Description
The Phone Number macro is used to insert phone numbers into strings generated with the Custom String generator.
The macro is an analog of the Phone Number data generator.
Syntax
The macro is specified using the following regular expression:
[0-9]{3}-[0-9]{3}-[0-9]{4}
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 example demonstrates how to use the Phone Number macro:
-
[0-9]{3}-[0-9]{3}-[0-9]{4}
This regular expression specifies phone numbers.
-
55[0-9]{1}-[0-9]{3}-[0-9]{4}
This regular expression specifies phone numbers that start with 55.
Remarks
-
For more information on adding macros to custom strings, see About Custom String Generator
-
For more information on general rules used for specifying macro parameters, see Custom String Generator Rules .
See Also
Macro Reference
Custom String Generator Rules
Custom String Generator
Custom-String Generator - Supported Regular Expressions
Phone Number Generator
Using Data Generators
Generating Values