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.

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.

Feedback
Report a bug

Found something broken in Gsc Regex Tester? Let us know what happened — this goes straight to a private triage queue, not a public list.

What will be sent
 No tool inputs, uploads, pasted source, complete results, query parameters, or URL fragments are attached automatically. You can edit or remove the selected passage above. Browser and anti-abuse metadata is processed for spam prevention. 

How to use it

  1. Write the regular expression on the first line. Do not wrap it in slashes.
  2. Paste one Search Console query on each following line.
  3. Select Analyze. Review syntax issues first, then the true/false match beside every query.
  4. 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.

Syntax issues0
how to audit redirectsMatch: true
what is crawl budgetMatch: true
technical seo toolsMatch: false

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.

Next stepWhich Pages Should I Work On? — look up the exact spec and expected values.

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.

Loading…

➕ Request a feature

New requests are reviewed before they appear here.

حول الأداة

فحص شكلي و اختبار بحث وحدة تحكم RE2 regex مرشحات مقابل الخاص بك الخاص استعلام قائمة.

مجاني, من دون تسجيل. يلتقط PCRE بنية GSC لا يمكن شغّل, ثم اختبار واحد آمن RE2 نمط محليًا. ضع ال نمط على سطر واحد و واحد استعلام في كل سطر بعد إنه.

الميزات

  • محدد الشروحات و إعادة كتابة اتجاهات من أجل شائع PCRE-to-RE2 أخطاء.
  • Per-query تطابق نتائج من أجل واحد واقعي قائمة, بالكامل في ال متصفح.
  • دعم من أجل عادي RE2-compatible مراسي, مجموعات, بدائل, فئات, و محدّدات الكمية.

كيفية العمل

ال مدقق شكلي عمليات فحص من أجل غير مدعوم RE2 ينشئ بما في ذلك تعبيرات النظر حول, رقمي و مسمّى مراجع خلفية, ذري و مشروط مجموعات, ملكية محدّدات الكمية, و \Z. إنه أيضًا يسأل ال متصفح regex محرك إلى يلتقط غير متوازن أقواس و آخر يجمّع أخطاء. فقط واحد خالٍ من أخطاء الفحص الشكلي نمط هو مطبق إلى ال مقدّم استعلامات, مع غير حساس لحالة الأحرف مطابق.

القيود

  • هذا هو واحد compatibility مدقق شكلي و محلي فاحص, ليس Google إنتاج RE2 runtime.
  • JavaScript و RE2 يختلف في بعض Unicode و تهريب حواف; تحقّق ال نهائي تصفية في بحث وحدة تحكم.
  • ال الأداة يفعل ليس يربط إلى GSC, تقدير مطابق نقرات, أو أنشئ استبعاد مرشحات تلقائيًا.

الأسئلة الشائعة

ما regex بنية يفعل محرك Google بحث وحدة تحكم دعم?

بحث وحدة تحكم يستخدم RE2 بنية. إنه يدعم شائع مجموعات, alternation, حرف فئات, مراسي, و محدّدات الكمية, لكن ليس تعبيرات النظر حول, مراجع خلفية, ذري مجموعات, مشروط مجموعات, أو ملكية محدّدات الكمية.

لماذا يفعل واحد regex عمل في آخر فاحص لكن يفشل في بحث وحدة تحكم?

كثير عام الغرض testers استخدم PCRE أو JavaScript regex. تلك محركات قبول ميزات ذلك RE2 عمدًا excludes. هذا الأداة علامات ال معروف incompatible ينشئ قبل اختبار ال نمط.

هي يطابق case-sensitive?

لا. هذا فاحص ينطبق ال نمط من دون حساسية لحالة الأحرف, مطابق ال سلوك متوقع من أجل بحث وحدة تحكم استعلام تصفية.

يفعل هذا الأداة إرسال my استعلامات في أي مكان?

لا. ال نمط و استعلام قائمة هي معالج في الخاص بك متصفح و هي ليس مرفوع.

يمكن I استخدم سلبي النظر إلى الأمام إلى استبعد branded استعلامات?

لا. RE2 يفعل ليس دعم النظر إلى الأمام. استخدم واحد بحث وحدة تحكم استبعد تصفية بشكل منفصل, أو اكتب واحد inclusive نمط من أجل ال مصطلحات أنت تريد إلى احتفظ.