| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeSets | [Back] [Original] |
Get to know MDN better
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 [^...] u v v
:
v 1 /[]/v ""
unicodeSets undefined
const regex = /[\p{Script_Extensions=Greek}&&\p{Letter}]/v;
console.log(regex.unicodeSets); // true
| ECMAScript 2027 LanguageSpecification # sec-get-regexp.prototype.unicodesets |
RegExp.prototype.lastIndexRegExp.prototype.dotAllRegExp.prototype.globalRegExp.prototype.hasIndicesRegExp.prototype.ignoreCaseRegExp.prototype.multilineRegExp.prototype.sourceRegExp.prototype.stickyRegExp.prototype.unicode| Web Proxy Viewer | New URL | Original Page |