★ wanayoo — archive 1999 https://developer.mozilla.org/pl/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicodeNouvelle recherche | Portail wanayoo

RegExp.prototype.unicode

przez 1 współtwórcę:
Nasi wolontariusze nie przetłumaczyli jeszcze tego artykułu na język Polski. Dołącz do nas i pomóż go przetłumaczyć!

This is a new technology, part of the ECMAScript 2015 (ES6) standard .
This technology's specification has been finalized, but check the compatibility table for usage and implementation status in various browsers.

The unicode property indicates whether or not the "u" flag is used with the regular expression. unicode is a read-only property of an individual regular expression instance.

Property attributes of RegExp.prototype.unicode
Writable no
Enumerable no
Configurable yes

Description

The value of unicode is a Boolean and true if the "u" flag was used; otherwise, false. The "u" flag enables various Unicode-related features. With the "u" flag, any Unicode code point escapes will be interpreted as such, for example.

You cannot change this property directly.

Examples

Using the unicode property

var regex = new RegExp('\u{61}', 'u');

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

Specifications

Specification Status Comment
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'RegExp.prototype.unicode' in that specification.
Standard Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Not supported Not supported Not supported Not supported Not supported
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported Not supported Not supported Not supported Not supported Not supported

See also

Autorzy i etykiety dokumentu

Contributors to this page: fscholz
Ostatnia aktualizacja: fscholz,