add unicode regex to features readme

This commit is contained in:
Sebastian McKenzie 2014-10-09 14:36:18 +11:00
parent b59168832c
commit 4bda4f0140

View File

@ -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]);
```