GO-V.ORG
As seen in

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for RegExp.prototype.unicodeSets.

Developer library 6

Lexical grammar

This page describes JavaScript's lexical grammar. JavaScript source text is just a sequence of characters — in order for the interpreter to understand it, the string has to be _parsed_ to a more structured representation. The initial step of parsing is called [lexical analysis](https://en.wikipedia.org/wiki/Lexical_analysis), in which the text gets scanned from left to right and is converted into a sequence of indivi

RegExp

xp.prototype.sticky - : Whether or not the search is sticky. - RegExp.prototype.unicode - : Whether or not Unicode features are enabled. - RegExp.prototype.unicodeSets - : Whether or not the `v` flag, an upgrade to the `u` mode, is enabled. These properties are own properties of each `RegExp` instance. - lastIndex - : The index at which to start the next match. ## Instance methods - RegExp.prototype.compi

RegExp() constructor

- [`u` (unicode)](/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode) - : Treat `pattern` as a sequence of Unicode code points. - [`v` (unicodeSets)](/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets) - : An upgrade to the `u` flag that enables set notation in character classes as well as properties of strings. - [`y` (sticky)](/docs/Web/JavaScript/Reference/Global_Obj

RegExp.prototype.unicodeSets

The **`unicodeSets`** accessor property of RegExp instances returns whether or not the `v` flag is used with this regular expression. JavaScript Demo: RegExp.prototype.unicodeSets ```js interactive-example const regex1 = /[α-ω]/u; const regex2 = /[\p{Lowercase}&&\p{Script=Greek}]/v; console.log(regex1.unicodeSets); // Expected output: false console.log(regex2.unicodeSets); // Expected output: true ``` ## Descrip

RegExp.prototype.unicode

icode-aware mode When we refer to _Unicode-aware mode_, we mean the regex has either the `u` or the [`v`](/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets) flag, in which case the regex enables Unicode-related features (such as [Unicode character class escape](/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape)) and has much stricter syntax rules. Because `u` and `v` in

Regular expressions

ints. | unicode | | `v` | An upgrade to the `u` mode with more Unicode features. | unicodeSets | | `y` | Perform a "sticky" search that matches starting at the current position in the target string. | sticky | To include a flag with the regular expression, use this syntax: ```js const re = /pattern/flags; ``` or ```js const re

JSON results · Services directory