<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Faizan Ali</title>
    <description>The latest articles on DEV Community by Faizan Ali (@faizan_ali_dd16166a0a091a).</description>
    <link>https://dev.to/faizan_ali_dd16166a0a091a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253897%2F1c458a93-ad18-4fdc-bd14-afe408114b85.png</url>
      <title>DEV Community: Faizan Ali</title>
      <link>https://dev.to/faizan_ali_dd16166a0a091a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/faizan_ali_dd16166a0a091a"/>
    <language>en</language>
    <item>
      <title>8 Copy-Paste Google Search Console RE2 Regex Filters + Fixing "Duplicate, Google Chose Different Canonical"</title>
      <dc:creator>Faizan Ali</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:16:37 +0000</pubDate>
      <link>https://dev.to/faizan_ali_dd16166a0a091a/8-copy-paste-google-search-console-re2-regex-filters-fixing-duplicate-google-chose-different-51jk</link>
      <guid>https://dev.to/faizan_ali_dd16166a0a091a/8-copy-paste-google-search-console-re2-regex-filters-fixing-duplicate-google-chose-different-51jk</guid>
      <description>&lt;p&gt;Google Search Console uses Google's &lt;strong&gt;RE2&lt;/strong&gt; regular expression engine under the hood—which means Perl/JavaScript lookarounds like &lt;code&gt;(?!brand)&lt;/code&gt; fail with syntax errors, while clean RE2 patterns unlock striking-distance keywords and indexing bugs in seconds.&lt;/p&gt;

&lt;p&gt;Here are 8 copy-paste RE2 filters you can drop straight into &lt;strong&gt;Search Results → + Add filter → Query / Page → Custom (regex)&lt;/strong&gt;, plus how to fix the canonical and AI crawler issues they uncover.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Question Queries (Featured Snippet &amp;amp; FAQ Targets)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;^(who|what|where|when|why|how|can|does|is|should)\b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use this with &lt;strong&gt;Impressions&lt;/strong&gt; sorted high-to-low and &lt;strong&gt;Position&lt;/strong&gt; between &lt;code&gt;6&lt;/code&gt; and &lt;code&gt;20&lt;/code&gt; to spot question queries where adding a crisp answer paragraph or &lt;code&gt;FAQPage&lt;/code&gt; JSON-LD pushes the page into the Top 5.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. 5+ Word Long-Tail Queries (Low-Competition Winners)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;^([^\s]+\s+){4,}[^\s]+$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Long-tail queries almost always reveal the exact phrasing developers and buyers type before clicking—even when traditional keyword tools report "zero search volume."&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Commercial &amp;amp; Tool Intent Queries
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\b(tool|generator|checker|calculator|template|vs|alternative|free)\b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Comparison &amp;amp; Alternatives Queries
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\b(vs|versus|alternative|alternatives|compare)\b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Blog Subfolder Traffic Only (Page Filter)
&lt;/h2&gt;

&lt;p&gt;Switch the filter target from &lt;strong&gt;Query&lt;/strong&gt; to &lt;strong&gt;Page → Custom (regex)&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;^https://(www\.)?yourdomain\.com/blog/.+
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. URLs Leaking Tracking or Pagination Parameters
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\?(utm_|fbclid|gclid|ref=|page=)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If this Page filter returns impressions on parameterized URLs, your templates may be echoing query parameters into &lt;code&gt;&amp;lt;link rel="canonical"&amp;gt;&lt;/code&gt; or internal links.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Trailing-Slash Mismatch Audit
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compare URLs matching &lt;code&gt;/$&lt;/code&gt; against non-slash URLs to ensure you aren't splitting link equity across &lt;code&gt;/guide&lt;/code&gt; and &lt;code&gt;/guide/&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. AI &amp;amp; LLM Search Queries Showing Up in GSC
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\b(chatgpt|claude|perplexity|llms\.txt|gptbot|oai-searchbot|ai)\b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Turning GSC Findings into Concrete Fixes
&lt;/h2&gt;

&lt;p&gt;Once you spot striking-distance queries or parameter leaks in Search Console, here is a fast browser-based workflow (100% free, no signup) to ship the fixes cleanly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build Custom RE2 Patterns Visually:&lt;/strong&gt; Use the &lt;a href="https://www.nitroserp.com/tools/gsc-regex-generator" rel="noopener noreferrer"&gt;Free Google Search Console RE2 Regex Generator&lt;/a&gt; to combine brand exclusions, subfolder rules, and word-count filters without hitting RE2 lookahead errors (more patterns in &lt;a href="https://www.nitroserp.com/blog/google-search-console-regex-filters-2026" rel="noopener noreferrer"&gt;12 GSC RE2 Regex Filters for 2026&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix "Duplicate, Google Chose Different Canonical Than User":&lt;/strong&gt; Strip &lt;code&gt;utm_*&lt;/code&gt;, &lt;code&gt;fbclid&lt;/code&gt;, and &lt;code&gt;gclid&lt;/code&gt; parameters in bulk and output matching HTML &lt;code&gt;&amp;lt;link rel="canonical"&amp;gt;&lt;/code&gt;, Next.js &lt;code&gt;alternates.canonical&lt;/code&gt;, or HTTP &lt;code&gt;Link:&lt;/code&gt; headers with the &lt;a href="https://www.nitroserp.com/tools/canonical-url-generator" rel="noopener noreferrer"&gt;Canonical URL Normalizer&lt;/a&gt; (full walkthrough: &lt;a href="https://www.nitroserp.com/blog/canonical-tags-duplicate-google-chose-different-canonical-2026" rel="noopener noreferrer"&gt;Fixing Duplicate, Google Chose Different Canonical&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test &lt;code&gt;600px&lt;/code&gt; Desktop &amp;amp; &lt;code&gt;360px&lt;/code&gt; Mobile Title Cutoffs:&lt;/strong&gt; Before editing titles on Position 8–20 pages, check proportional pixel width and height in the &lt;a href="https://www.nitroserp.com/tools/serp-preview" rel="noopener noreferrer"&gt;Google SERP Pixel Simulator&lt;/a&gt; and inspect 2-word and 3-word phrase frequency in the &lt;a href="https://www.nitroserp.com/tools/keyword-density-checker" rel="noopener noreferrer"&gt;N-Gram Keyword Density Checker&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify AI Search Crawler Access (&lt;code&gt;OAI-SearchBot&lt;/code&gt; vs &lt;code&gt;GPTBot&lt;/code&gt;):&lt;/strong&gt; Run a live scan of your &lt;code&gt;/robots.txt&lt;/code&gt;, &lt;code&gt;/llms.txt&lt;/code&gt;, and JSON-LD entities in the &lt;a href="https://www.nitroserp.com/tools/chatgpt-visibility-checker" rel="noopener noreferrer"&gt;ChatGPT &amp;amp; AI Search Visibility Checker&lt;/a&gt; so blocking AI model training doesn't accidentally block ChatGPT Search citations.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What's your go-to Search Console regex filter when auditing a site? Drop it in the comments!&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>regex</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
