Regular expressions are a way to precisely specify a certain format for text. You can read more about regular expressions here. Surge uses the Ruby language's regular expressions engine to power this feature.

Note, on Surge, regular expressions must match the entire text. For example, the regular expression [0-9]+ will match 1234, but it will not match 1234a, because the expression doesn't capture the entirety of the text.

Below are some examples of how to use regular expressions to specify a specific format for text.