Skip to main content
A template, not a regular expression. Write the shape using tokens and literal text. Everything that is not a token matches literally, including spaces. Separate alternatives with |.

Tokens

Recipes

Limits

Refused on save

  • Blank. To drop region tags, set Region tag to “Not used” instead.
  • No tokens anywhere. A literal-only format accepts exactly one region. A literal-only alternative is fine: <COUNTRY>-<STATE> | UK is valid.
  • An unknown token, or an angle bracket outside a token.
  • A character literals do not allow. Literals accept letters, digits, spaces, and - / . , #.
  • An alternative that could exceed 24 characters.

Notes

  • Literals are stored as you wrote them. With Zone <DIGITS>, a trader typing zone 5 gets Zone 5.
  • The format generates the help text. The placeholder, the field example and the trader’s error message are all built from your format using each token’s sample. Nothing else needs updating.
  • Changing the format does not rewrite saved regions. Saved regions are checked for shape only, so a trader can keep one that no longer matches and will hit a publish-time error. Announce a format change on a busy subreddit.
  • Spaces inside an alternative count. Zone <DIGITS> accepts Zone 5; Zone<DIGITS> accepts Zone5. Spaces around | are trimmed.