For a greater control than a simple catch-all, you can define a set of rules to auto create aliases.
- A rule is based on a regular expression (regex): if an alias matches the expression, it'll be automatically
- created.
+ A rule is based on a regular expression (regex): if an alias fully matches the expression,
+ it'll be automatically created.
- Only the local part of the alias (i.e. @{{ custom_domain.domain }} is ignored) during the
+ Only the local part of the alias (i.e. @{{ custom_domain.domain }} is ignored) during the
regex test.
- For example, if you want aliases that starts with prefix. to be automatically created, you can set
+ For example, if you want aliases that starts with prefix to be automatically created, you can set
the
regex to prefix\..*
+ data-clipboard-text="prefix.*">prefix.*
- If you want aliases that ends with .suffix to be automatically created, you can use the regex
+ If you want aliases that ends with suffix to be automatically created, you can use the regex
.*\.suffix
+ data-clipboard-text=".*suffix">.*suffix
To test out regex, we recommend using regex tester tool like
https://regex101.com↗