<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Regex on Commentary of Takao</title><link>https://takao.blog/en/tags/regex/</link><description>Recent content in Regex on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sat, 13 Jun 2026 23:11:50 +0900</lastBuildDate><atom:link href="https://takao.blog/en/tags/regex/index.xml" rel="self" type="application/rss+xml"/><item><title>Unlocking JavaScript RegExp Power with the v Flag</title><link>https://takao.blog/en/web/js-regex-v-flag/</link><pubDate>Wed, 15 Oct 2025 00:00:00 +0900</pubDate><guid>https://takao.blog/en/web/js-regex-v-flag/</guid><description>&lt;img src="https://takao.blog/img/thumnail.webp" alt="Featured image of post Unlocking JavaScript RegExp Power with the v Flag" /&gt;&lt;h2 id="introduction"&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Regular expressions in JavaScript have evolved significantly. ES2024 introduces the &lt;strong&gt;&lt;code&gt;v&lt;/code&gt; flag&lt;/strong&gt; — a superset of the &lt;code&gt;u&lt;/code&gt; flag that unlocks powerful set notation, character class subtraction, intersection, and proper Unicode emoji matching. If you&amp;rsquo;ve struggled with complex character class logic or emoji regex patterns, the &lt;code&gt;v&lt;/code&gt; flag is a game-changer.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="what-is-the-v-flag"&gt;What Is the v Flag?
&lt;/h2&gt;&lt;p&gt;The &lt;code&gt;v&lt;/code&gt; flag replaces and extends the &lt;code&gt;u&lt;/code&gt; (unicode) flag. Enable it by appending &lt;code&gt;v&lt;/code&gt; to your regex:&lt;/p&gt;</description></item></channel></rss>