RegExp unicode
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 | trueif the u modifier is set, otherwisefalse. | 
Browser Support
regexp.unicode is a JavaScript 2018 feature.
ES 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 | 
 
