[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets [Back]  [Original]

RegExp.prototype.unicodeSets - JavaScript | MDN

MDN Web Docs

View in English Always switch to English

RegExp.prototype.unicodeSets

Baseline

20239

unicodeSets RegExp v

const regex1 = /[\p{Lowercase}&&\p{Script=Greek}]/;
const regex2 = /[\p{Lowercase}&&\p{Script=Greek}]/v;

console.log(regex1.unicodeSets);
// : false

console.log(regex2.unicodeSets);
// : true

RegExp.prototype.unicodeSets v true false v u Unicode u v SyntaxError v u

  • \p
  • Unicode
  • [^...]

u v v

: v 1 /[]/v ""

unicodeSets undefined

unicodeSets

js
const regex = /[\p{Script_Extensions=Greek}&&\p{Letter}]/v;

console.log(regex.unicodeSets); // true

ECMAScript 2027 LanguageSpecification
# sec-get-regexp.prototype.unicodesets


Web Proxy Viewer  |  New URL  |  Original Page