SEO tools
REGEX generator for SEO
Create regular expressions for GSC, GA4, Screaming Frog and more. No REGEX knowledge needed.
Settings
Conditions
Values
Generated REGEX
Add conditions to generate the REGEX
What this REGEX does
Add conditions above to see the explanation.
Examples (JavaScript simulation)
Check the pattern in the target tool. It compares the literal text, without decoding URLs. The simulation may differ on line breaks or Unicode.
Examples will appear here
How to use the generated REGEX
Once you have your regular expression, you only need to copy and paste it. Here is where it goes in each tool.
Google Search Console
1 Go to Performance
2 Click + New, next to the filters
3 Select Query to filter queries or Page to filter URLs
4 In the drop-down, switch to Custom (regex)
5 Paste the REGEX and apply the filter
Google Analytics 4
1 Go to any report: Acquisition, Engagement or another
2 Click Add filter
3 Select the dimension you want to filter: page, source, campaign…
4 For the match type, choose matches regular expression
5 Paste the REGEX and apply
Looker Studio
1 Select the chart or table you want to filter
2 In the right panel, find Filter and click Add a filter
3 Create a new filter with the dimension you need
4 For the condition, select Regular expression or RegExp Match
5 Paste the REGEX
Screaming Frog
To search for patterns in the content
1 Go to Configuration, Custom, Search
2 Add a new search
3 Select Contains and tick the Regex option
4 Paste the REGEX
To include or exclude URLs from the crawl
1 Go to Configuration, Include/Exclude
2 Add a rule and paste the REGEX
Sitebulb
1 In any report, click Filters
2 Select the column you want to filter
3 Choose Matches Regex
4 Paste the REGEX
Tip
Before applying a REGEX filter, test it in the tool above. The examples section shows whether the pattern matches what you expect.
Frequently asked questions about REGEX
What is a regular expression or REGEX? +
A regular expression (REGEX) is a search pattern that lets you filter and find text with certain characteristics. In SEO it is used to filter queries in Search Console, create segments in GA4, extract data in Screaming Frog or create redirects in .htaccess.
What is the difference between RE2 and PCRE? +
Google Search Console, GA4 and Looker Studio use RE2, which does not support lookarounds. For those targets the generator blocks the combinations that need that syntax and explains how to use separate filters. Other targets support more syntax; always check the pattern in your tool.
Can I use this REGEX generator for free? +
Yes, the REGEX generator is completely free, with no sign-up and no usage limits.
What types of conditions can I create? +
You can create 9 types of conditions: Contains, Does not contain, Starts with, Does not start with, Ends with, Does not end with, Word count, Contains numbers and Exact word. AND combinations and exclusions have restrictions on RE2 targets, which are shown before you copy.
How do I filter brand queries in Search Console? +
Select Google Search Console as the tool and Queries as the type, then add a Contains condition with your brand name and its variations separated by commas.
Does it work on mobile devices? +
Yes, the tool is responsive and works well on smartphones and tablets.
Tell me about your project
Free first call, no commitment. I tell you what I would do and whether it makes sense to work together.