[Changelog](/changelog) August 2, 2024

# Automated Regex Generation for Streamlined Data Validation

Learn how to automatically generate regex patterns, making it easy to create precise validations without writing complex patterns manually!

Released August 2, 2024 · 2 min read

![](/images/66cda299901f7bf9b78ec825_autocomplete_regexes.avif)

At Trackingplan, we know that manually creating **Regular Expressions** can be a challenging task, especially for users who may not have prior experience, making it difficult for them to enforce strict validation rules on their data.

That’s why, to simplify this process and simplify [**data validation processes**](/docs/data-validation) for our users, we now offer the ability to ** automatically generate regex patterns.** This allows users to create precise and robust validations without needing to write complex patterns manually!

## Automatic Regex Generation: Why It Matters

For those new to Regular Expressions (Regex), these are patterns that allow you to define specific rules for how data values should be structured. By applying a Regex pattern to a property, you ensure that all values conform to your specified format, leading to more reliable and standardized data.

Yet, while creating precise and robust validations is crucial for maintaining data integrity, manually writing complex Regex patterns can be a challenging, daunting task. With our new **Automatic Regex Generation** feature, you can now effortlessly generate Regex patterns without the need to craft them manually. This enhancement not only saves time but also ensures that your data validation is both accurate and consistent.

## How to Automatically Generate Regex Patterns

Here’s a step-by-step guide to automatically generate regex patterns with Trackingplan's new functionality:

1\. First, navigate to the property where you’d like to add a Regular Expression. Then, click on its type field and choose "Regex" from the drop-down menu.

![](/images/679ceebd8d505022e41ccb58_670684ac0960ed2178fcc022_66cda4f21c92fbd7b62a2959_66cda41ac4b6a956ed2a6093_regex-2520creation.avif)

2\. After that, click on *Pick a Regular Expression*. If this is your first time creating a regular expression, select *Create New Regex*. Otherwise, you can reuse one of your existing ones, cloning it directly or editing it for this specific property.

![](/images/679ceebd8d505022e41ccb5b_670684ab0960ed2178fcbfb5_66cda4f11c92fbd7b62a2947_66cda45d39d80ae04f504e6d_regex-2520creation-2520-25202.avif)

**3\. Here’s where the magic happens**. Just click on “Autocomplete this Regex” to automatically generate a regex pattern based on the values observed for this specific property. Our system will also suggest a name for your regex, eliminating the need to come up with one.

![](/images/679ceebd8d505022e41ccb70_670684ac0960ed2178fcc025_66cda4f21c92fbd7b62a2965_66cda481874731d04fe3c58f_autocomplete-2520regex-2520.avif)

4\. Review and fine-tune. All the values automatically generated will be placed directly within the playground, allowing you to manually add more if needed. Once you are happy with it, click on “Create New Regex”*.*

*‍*From this point on, Trackingplan will be checking that all the values for these properties match the specified regular expression. If a value does not conform with the pattern you have specified, the dashboard will automatically show you a warning.

![](/images/679ceebd8d505022e41ccb5e_670684ab0960ed2178fcbfa8_66cda4f11c92fbd7b62a2944_66cda4b04b71acc6a7411d5d_data-2520validation-2520error.avif)

## Your Data Privacy Concerns Answered

We understand the importance of [**data privacy**](/privacy-hub). That's why your data ** will not be processed through AI**, ensuring your information remains private and secure.

![](/images/66cda4f21c92fbd7b62a295c_66cda4de874731d04fe41359_ai-and-data-privacy.avif)

On this page

1.  [*01*Automatic Regex Generation: Why It Matters](#automatic-regex-generation-why-it-matters)
2.  [*02*How to Automatically Generate Regex Patterns](#how-to-automatically-generate-regex-patterns)
3.  [*03*Your Data Privacy Concerns Answered](#your-data-privacy-concerns-answered)

**Stop babysitting tags**

Trackingplan audits your real user data around the clock and flags issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup)

Share Copy link [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.trackingplan.com%2Fchangelog%2Fregex-interference) [X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.trackingplan.com%2Fchangelog%2Fregex-interference)

Read next

[All releases →](/changelog)

-   [
    
    NewerNewerAug 8, 2024
    
    ### Introducing Domain Attributions
    
    We’re excited to introduce Domain Attributions , a powerful enhancement designed to simplify the process of filtering and debugging your analytics data on a per-domain basis.
    
    ](/changelog/introducing-domain-attributions)
-   [
    
    OlderOlderJul 24, 2024
    
    ### Introducing Our New Privacy Report
    
    We are thrilled to introduce the latest improvements to Trackingplan’s Privacy Report ! This enhancement is designed to help you ensure the privacy of your customers and avoid legal violations by providing a clear, organized view of the data your site collects and shares.
    
    ](/changelog/introducing-our-new-privacy-report)

Trackingplan

## See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.

[Start free trial →](https://app.trackingplan.com/signup) [Book a demo](/demo)
