Skip to main content

How do I validate based on custom REGEX with Address Ninja?

John Speed·Published · Last updated help

Open Address Ninja from Apps in your Shopify admin. On the home page, click Custom rule (REGEX). In the What to block card, enter a regular expression in the Regex field, or click Presets and choose a ready-made pattern such as Block numbers or Require a value. Type a sample in the Check your regex field to see if the pattern blocks it. Select the fields the pattern applies to. Under Countries, choose All countries, Only these countries, or Except these countries. To add a pattern for other fields or countries, click Add another pattern. Click Save and turn on.

Customers whose entry matches the pattern see your error message. To change it, open the Error message card. Contact us if you need help writing the pattern. This rule is included in the Pro plan.

Originally from our Help Center

Ready to get started?

Install Address Ninja on Shopify and see the difference today.

Install Address Ninja on Shopify