Regex Generator and Tester for GSC and Screaming Frog

Answer a few questions and get a working regular expression for Google Search Console or Screaming Frog, then test it against your own queries and URLs.

Answer a few questions

The pattern appears below and is tested on your lines straight away. Already have a pattern? Use the Test my own pattern tab.

    Check it on real lines (optional)

    Paste a few real queries or URLs to check the pattern matches what you expect.

    How the builder works

    Use the Build a pattern for me tab when you know what you want to match but not how to write it. Use the Test my own pattern tab when you already have a pattern and want to check it before pasting it into Search Console or Screaming Frog. The builder is a set of fixed templates, not an AI. You say where the pattern will be used and what you want to match, and it assembles the pattern from tested pieces, escaping any special characters in your words. The plain-English line under the pattern says exactly what it will do, and the tester shows it working on sample lines straight away.

    Search Console and Screaming Frog are different

    Search Console reads regular expressions with the RE2 engine. RE2 is fast and safe, but it leaves out features many people expect: lookahead and lookbehind, backreferences such as \1, and possessive quantifiers. Search Console simply reports an invalid pattern, so this tool names the exact feature RE2 rejects. In Search Console a pattern matches anywhere in the query or URL unless you anchor it with ^ and $.

    Screaming Frog uses Java regular expressions, which do allow lookarounds and backreferences. Custom Search finds a match anywhere in the page. Include and Exclude compare the pattern with the whole URL, so patterns usually start or end with .*. Custom Extraction returns the text captured by the first pair of brackets, so the tester shows capture group 1 for every match.

    Limits

    Regex is a small part of technical SEO work such as log checks, crawls, and query analysis. If you want that kind of analysis done for your site, that's part of my work.