The RegExp unicode Property
Examples
const pattern = /W3Schools/;
let result = pattern.unicode;
Try it Yourself »
const pattern = /W3Schools/u;
let result = pattern.unicode;
Try it Yourself »
Description
The unicode
property returns true
if the u flag is set in the expression.
Syntax
regexp.unicode
Parameters
NONE |
Return Value
Type | Description |
---|---|
Boolean | true if the u modifier is set, otherwise false . |
Browser Support
unicode
is an ECMAScript 2018 feature.
JavaScript 2018 is supported in all modern browsers since June 2020:
Chrome 63 | Edge 79 | Firefox 78 | Safari 12 | Opera 50 |
Des 2017 | Jan 2020 | Jun 2020 | Sep 2018 | Jan 2018 |