add unicode regex to features readme
This commit is contained in:
parent
b59168832c
commit
4bda4f0140
@ -150,3 +150,11 @@ var x = 5;
|
||||
var y = 10;
|
||||
console.log(`${x} + ${y} = ${x + y}`); // "5 + 10 = 15"
|
||||
```
|
||||
|
||||
## Unicode regex
|
||||
|
||||
```javascript
|
||||
var string = 'foo💩bar';
|
||||
var match = string.match(/foo(.)bar/u);
|
||||
console.log(match[1]);
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user