> For the complete documentation index, see [llms.txt](https://help.getalltool.com/king-checkout-validation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.getalltool.com/king-checkout-validation/how-to-match-zip-codes-with-wildcards.md).

# How to Match Zip Codes with Wildcards

We provide 4 wildcards to match zip codes, which are:

* <mark style="color:red;">**`*`**</mark>: Match any number of characters
* <mark style="color:red;">`?`</mark>: Match a single character, e.g. 1?10 matches 1010, 1110, 1a10, etc.
* <mark style="color:red;">`^`</mark>: Starting character, used to identify the starting character, e.g. ^10 matches 10, 101, 1006, etc.
* <mark style="color:red;">`$`</mark>: Terminator, used to identify the ending character, e.g. 51$ matches 51, 1051, 151, etc.

If we want to match a 4-digit zip code that starts with 12, then we can write the following value:&#x20;

<mark style="color:red;">`^12??$`</mark>

<figure><img src="https://3472108367-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhCm3B02n2rLZWcOZM7ET%2Fuploads%2FqVmmO3x1jul0LoBTSbcz%2Fimage.png?alt=media&amp;token=fda61771-80df-40cf-89c1-95f59807528f" alt=""><figcaption></figcaption></figure>
