GSC Regex Builder & Tester
Free, no signup. Catch PCRE syntax GSC cannot run, then test a safe RE2 pattern locally. Put the pattern on line one and one query per line after it.
RE2 rejects lookarounds, backreferences, atomic groups, and possessive quantifiers. Separate data sets with a line containing ---. Files never leave your browser.
Site passport Local context for this saved site
Local data
Saved targets, named lists, and recent check summaries remain only in this browser.
Runs entirely in your browser — nothing you paste is uploaded or stored. Anonymous run-level outcome counters may be used for aggregate research; URLs, domains, IPs, and identifiers are never included, and no statistic is released below 100 runs.
Rate this tool
How to use it
- Write the regular expression on the first line. Do not wrap it in slashes.
- Paste one Search Console query on each following line.
- Select Analyze. Review syntax issues first, then the true/false match beside every query.
- Copy a clean pattern into a Search Console custom query filter. Recheck the filtered total before using it in reporting.
Example output Example data
This static example uses ^(how|what)\b against three illustrative queries. It shows the exact result shape; it is not connected to a Search Console property.
What you get
Issues lists every incompatible token the linter recognizes, its character index, why RE2 rejects it, and a safer rewrite direction. An empty array means no known lint issue was found; it is not a guarantee that a complex pattern expresses your intended audience.
Match is the browser test result for that query. When the pattern has any lint or compile issue, all test rows return false rather than pretending the broken pattern ran successfully.
How it works
The linter scans for unsupported RE2 constructs including lookarounds, numeric and named backreferences, atomic and conditional groups, possessive quantifiers, and \Z. It also asks the browser regex engine to catch unbalanced brackets and other compile errors. Only a lint-clean pattern is applied to the supplied queries, with case-insensitive matching.
Features
- Specific explanations and rewrite directions for common PCRE-to-RE2 mistakes.
- Per-query match results for a realistic list, entirely in the browser.
- Support for ordinary RE2-compatible anchors, groups, alternatives, classes, and quantifiers.
Limitations
- This is a compatibility linter and local tester, not Google's production RE2 runtime.
- JavaScript and RE2 differ at some Unicode and escaping edges; validate the final filter in Search Console.
- The tool does not connect to GSC, estimate matched clicks, or generate exclusion filters automatically.
Frequently asked questions
What regex syntax does Google Search Console support?
Search Console uses RE2 syntax. It supports common groups, alternation, character classes, anchors, and quantifiers, but not lookarounds, backreferences, atomic groups, conditional groups, or possessive quantifiers.
Why does a regex work in another tester but fail in Search Console?
Many general-purpose testers use PCRE or JavaScript regex. Those engines accept features that RE2 deliberately excludes. This tool flags the known incompatible constructs before testing the pattern.
Are matches case-sensitive?
No. This tester applies the pattern case-insensitively, matching the behavior expected for Search Console query filtering.
Does this tool send my queries anywhere?
No. The pattern and query list are processed in your browser and are not uploaded.
Can I use negative lookahead to exclude branded queries?
No. RE2 does not support lookahead. Use a Search Console exclude filter separately, or write an inclusive pattern for the terms you want to keep.
Feature requests for Gsc Regex Tester
Upvote what you want most. New ideas can be submitted from the floating Feedback menu; requests appear here once approved, and the most-wanted rise to the top.
You won't be emailed about that request anymore.
Loading…
➕ Request a feature
New requests are reviewed before they appear here.
Araç hakkında
Search Console RE2 regex filtrelerini kendi sorgu listenizle tarayıcıda denetleyin ve test edin. Deseni ilk satıra, her sorguyu sonraki satırlara koyun; PCRE'nin desteklenmeyen yapıları için uyumluluk bulguları alın ve güvenli eşleşmeleri görün.
Ücretsizdir ve kayıt gerektirmez. RE2 uyumlu sabitleyicileri, grupları, alternatifleri, sınıfları ve niceleyicileri yerel olarak test edin; desen ve sorgu listeniz yüklenmez.
Özellikler
- Search Console RE2 söz diziminde uyumsuz lookaround, backreference, atomic/conditional grup ve possessive niceleyicileri bulma.
- Gerçekçi sorgu listesinde her satır için true/false eşleşme sonuçları.
- Linter'ın tanıdığı her uyumsuz belirteç için konum, neden ve daha güvenli yeniden yazım yönü.
- Soru, karşılaştırma, uzun kuyruk ve marka filtreleri için hazır preset kitaplığı.
- Temiz deseni Search Console özel sorgu filtresine kopyalama ve rapor toplamını yeniden kontrol etme.
Nasıl çalışır
Regex'i ilk satıra eğik çizgi sarmadan yazın ve her Search Console sorgusunu sonraki satıra ekleyin. Analiz'i seçip önce söz dizimi bulgularını inceleyin, sonra her sorgunun true/false eşleşmesini kontrol edin. Hazır bir preset ekleyebilir, temiz deseni kopyalayabilir ve raporlama toplamını Search Console'da yeniden kontrol edebilirsiniz.
Sınırlamalar
- Bu bir uyumluluk linter'ı ve yerel test aracıdır; Google'ın üretim RE2 çalışma zamanına bağlanmaz, GSC'ye bağlanmaz, tıklama tahmini yapmaz veya dışlama filtresi üretmez.
- JavaScript ve RE2 bazı Unicode ve kaçış ayrıntılarında farklıdır. Temiz bir linter sonucu karmaşık bir desenin hedeflediğiniz kitleyi anlattığını garanti etmez; son filtreyi Search Console'da doğrulayın.
Sık sorulan sorular
Google Search Console hangi regex söz dizimini destekler?
RE2; yaygın grupları, alternatifleri, karakter sınıflarını, sabitleyicileri ve niceleyicileri destekler. Lookaround, backreference, atomic/conditional grup ve possessive niceleyicileri desteklemez.
Markalı sorguları dışlamak için negative lookahead kullanabilir miyim?
Hayır. RE2 lookahead desteklemez. Bunun yerine Search Console'da ayrı bir exclude filtresi kullanın veya tutmak istediğiniz terimler için kapsayıcı bir desen yazın.
Eşleşmeler büyük/küçük harfe duyarlı mı?
Hayır. Bu tester Search Console sorgu filtrelerinde beklenen davranışa uygun olarak deseni büyük/küçük harf duyarsız uygular.
Regex başka bir test aracında çalışırken Search Console'da neden başarısız olur?
Birçok genel araç PCRE veya JavaScript kullanır; bu motorlar RE2'nin reddettiği lookaround ve backreference gibi özellikleri kabul eder. Linter uyumsuz belirteci ve daha güvenli yönü gösterir.
Sorgularımı herhangi bir yere gönderiyor musunuz?
Hayır. Desen ve sorgu listesi tarayıcıda işlenir; yüklenmez, sunucuya gönderilmez ve saklanmaz.