Skip to content (Press Enter)

How to use custom regex in Dropbox Sign

Updated Nov 16, 2026

In this article

    person icon

    The information in this article applies to customers on Dropbox Sign Premium.

    What is custom regex?

    Custom regex is a method used in programming for pattern matching, and is a type of data validation. Supported JavaScript regexes are supported in this custom data validation. 

    You can add custom regex as a validation option for textbox fields on your documents.

    How to add custom regex to your document in the Dropbox Sign editor

    To add custom regex:

    1. Add a textbox field to your document.
    2. Click the textbox.
    3. Click the Validation dropdown.
    4. Select Custom regex.
    5. Enter your custom regex under Specify a regular expression, for example, [A-Z][a-zA-Z]+,[ ]?[A-Z]{2}.
    6. Enter a description under Regex label, for example, “City, ST”. This text will appear in the error message that shows if an entry doesn't match your requirements.
    Was this article helpful?

    Let us know how why it didn't help:

    Thanks for letting us know!

    Thanks for your feedback!

    Community answers

    Footer-Help