Fix typo
This commit is contained in:
parent
383c3db3c9
commit
f5f31e8e08
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue