United Kingdom Postcode Macro

Applies to LoadComplete 4.97, last modified on May 20, 2019


The United Kingdom Postcode macro is used to insert United Kingdom postcodes into strings generated with the Custom String generator.

The macro is an analog of the United Kingdom Postcode data generator.


The macro is specified using the following regular expression:

[A-Z][0-9] [0-9][A-Z]{2}

You can change this regular expression if necessary. For more information on the syntax of regular expressions, see Supported Regular Expressions.


The macro has no parameters.


The following examples demonstrate how to use the United Kingdom Postcode macro:

  • [A-Z][0-9] [0-9][A-Z]{2}

    This regular expression specifies postcodes used in the United Kingdom.

  • [A-Z][1-9] [1-9][A-Z]{2}

    This regular expression specifies United Kingdom postcodes that do not contain zeros.


See Also

Macro Reference
Custom String Generator Rules
Custom String Generator
Custom-String Generator - Supported Regular Expressions
United Kingdom Postcode Generator
Using Data Generators
Generating Values

Highlight search results