---
title: "Regular Expression precondition"
canonical: "https://support.appfire.com/space/JSUCLOUD/12518693/Regular%20Expression%20precondition"
format: markdown
---
> Macro (aura-html)

> Macro (excerpt)
> 
> ## Description
> 
> The Regular Expression precondition compares the value of a text, number, or URL field against a regular expression. Use it to verify that the content matches a specified format.
> 
> ## Configuration
> 
> You must select the field to be checked and enter the regular expression. For example:
> 
> ![Example of the Regular Expression precondition as described on this page.](media://1e755638-9ffb-45fb-a4ef-db0b7f632eac)
> 
> - **[0-9]{4}-[0-9]{4}** allows numbers such as: 1245-7783
> - **[0-9]+ EUR$** allows price tags such as: 34 EUR
> - **[a-z]*** allows an empty string, or any lowercase word such as: yellow
> - **Option [A,B]** allows a selection of options: Option A, Option B or both.
> 
> <span style="color: #172b4d">Detailed documentation on regular expressions can be found in </span>[Oracle's documentation](https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html) for a technical description, or at [regular-expressions.info](https://www.regular-expressions.info/) for a more general description.<span style="color: #172b4d"> Another good resource for developing and testing regular expressions is </span>[freeformatter.com](https://www.freeformatter.com/java-regex-tester.html)<span style="color: #172b4d">.</span>
> 
> ## Example
> 
> A workflow is configured so that the Create transition has the Regular Expression precondition. If the summary contains the phrase `'Onboarding'`or `'onboarding'`, a sub-task will be created for creating the user account in the company's systems.
> 
> ## Supported field types
> 
> > Macro (include)