# Pattern Validator

Validates input against regex pattern and branches workflow.

## Plan availability

| Feature | Free | Starter | Pro | Enterprise |
| --- | --- | --- | --- | --- |
| Active workflows | 3 | 10 | 45 | Unlimited |

Allowances follow the [published Chatigram pricing page](https://chatigram.com/pricing/). Your organization’s Billing & Plans screen confirms its subscription and current usage. Plans can change. Plan information reviewed 2026-11-10.


## When to use this node

Validates input against regex pattern and branches workflow.

Add **Pattern Validator** to a workflow branch using the node picker. Configure its fields in the inspector, then connect the next step.

## Configure the fields

| Field | What to enter |
| --- | --- |
| **Input** | Value to validate (text, number, etc.) |
| **Pattern** | Regular expression pattern. Type the pattern shown after colon. Text in parentheses is just description.<br>• Email: ^[^\s@]+@[^\s@]+\.[^\s@]+$<br>• Website: ^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b<br>• Mobile (10 digits): ^\d{10}$<br>• Mobile (international): ^\+?[1-9]\d{1,14}$<br>• Credit Card (16 digits): ^\d{16}$<br>• Credit Card (with spaces): ^\d{4}\s?\d{4}\s?\d{4}\s?\d{4}$<br>• Only numbers: ^\d+$<br>• Only integers (with +/-): ^[+-]?\d+$<br>• Decimal numbers: ^[+-]?\d+(\.\d+)?$<br>• Only letters: ^[a-zA-Z]+$<br>• Letters with spaces: ^[a-zA-Z\s]+$<br>• 2 letters + 6-8 digits (e.g. AE23457283): ^[A-Z]{2}\d{6,8}$<br>• Alphanumeric: ^[a-zA-Z0-9]+$<br>• Hex color: ^#?([a-fA-F0-9]{6}\|[a-fA-F0-9]{3})$<br>• Date (YYYY-MM-DD): ^\d{4}-\d{2}-\d{2}$<br>• Persian Date + Time (YYYY-MM-DD HH:MM): ^[۰-۹\d]{4}[-/][۰-۹\d]{1,2}[-/][۰-۹\d]{1,2}\s+[۰-۹\d]{1,2}:[۰-۹\d]{2}$<br>• Time (HH:MM): ^([01]?\d\|2[0-3]):[0-5]\d$<br>• IP Address: ^((25[0-5]\|2[0-4]\d\|[01]?\d\d?)\.){3}(25[0-5]\|2[0-4]\d\|[01]?\d\d?)$<br>• Username (3-16 chars): ^[a-zA-Z0-9_-]{3,16}$<br>• Strong Password: ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&amp;])[A-Za-z\d@$!%*?&amp;]{8,}$ |
| **Match Mode** | Exact: Entire input must match pattern (whitespace trimmed). Contains: Pattern can appear anywhere in input.<br>Choices: `exact`, `contains`.<br>Example/default shown in the editor: `exact`. |

## Use the result

This definition has no fixed public output variables. It may perform an action, or expose dynamic outputs after you configure response extraction, a table, or another resource. Check the variable picker after configuring the node.

## Connect the next step

This definition exposes these paths:

- **Valid** — branch 1.
- **Invalid** — branch 2.

Connect each relevant outcome, especially any error or timeout path. Outputs can differ by outcome; check that a result exists before using it.

## Test it in a workflow

1. Configure this node with a small, recognizable test input or a test resource.
2. Check the variables from preceding steps and the connection selected in the inspector.
3. Save the workflow. For event-driven flows, generate the actual event; use **Run** only for a Manual workflow.
4. Open **Workflow Activity** and check the outcome before enabling wider use.

## If something goes wrong

- Check empty variables, selected resource IDs, and any fields that appeared after resource selection.
- Check the failed step in Workflow Activity before retrying. If the action may already have completed, inspect the destination first to avoid duplicates.
- Follow the [troubleshooting guide](/help/troubleshooting/) for a symptom-by-symptom checklist.

## Related guides

- [Work with variables](/workflows/variables/)
- [Understand branches and error handling](/workflows/branches/)
- [Browse all nodes](/reference/nodes/)
- [Email Validator](/nodes/validate-email/)


## Catalog coverage

This is the currently documented selection. Chatigram continues to add nodes, triggers, App Connections, and integrations. Use each page’s review date and the current application selectors to check what is available now; this catalog is not a fixed limit on future features.
