# Regex

Frends offers seamless integration with [Regex expressions](https://en.wikipedia.org/wiki/Regular_expression), enabling you to effortlessly connect and automate data flows involving Regex expressions.

Frends has tasks for performing all core Regex operations.

By leveraging Frends' task-based approach, you can configure and customize Regex integrations according to your specific requirements. Frends offers a wide range of tasks that facilitate integrations to a variety of systems and protocols.

## Use cases

Below you will find typical use cases for Regex integrations and how they are implemented in Frends.

### Validate email using Regex

By using the [`IsMatch`](https://docs.frends.com/tasks/tasks/regex/ismatch) task we can create an integration that receives an email address and checks whether it is valid using a regular expression.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-4137188c031b54066c292ff1711e373271fd76ef%2Fregex-match.svg?alt=media" alt=""><figcaption><p>Match</p></figcaption></figure>

### Replace text using Regex

By using the [`Replace`](https://docs.frends.com/tasks/tasks/regex/replace) task we can create an integration that reads a file and replaces text inside.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-860e1aa82f8408a8008faa35266677c25a34d367%2Fregex-replace.svg?alt=media" alt=""><figcaption><p>Replace</p></figcaption></figure>
