This commit is contained in:
Alexey Pyltsyn 2019-05-13 23:27:37 +03:00
parent 383c3db3c9
commit f5f31e8e08

View file

@ -40,7 +40,7 @@ There are also other derived categories, like:
For instance, let's look for a 6-digit hex number: For instance, let's look for a 6-digit hex number:
```js run ```js run
let reg = /\p{Hex_Digit}{6}/u; // flag 'u' is requireds let reg = /\p{Hex_Digit}{6}/u; // flag 'u' is required
alert("color: #123ABC".match(reg)); // 123ABC alert("color: #123ABC".match(reg)); // 123ABC
``` ```