This commit is contained in:
Ilya Kantor 2019-09-06 16:48:59 +03:00
parent 681cae4b6a
commit 4232a53219
10 changed files with 315 additions and 342 deletions

View file

@ -118,9 +118,9 @@ For instance, let's look for hexadecimal numbers, written as `xFF`, where `F` is
A hex digit can be denoted as `pattern:\p{Hex_Digit}`:
```js run
let reg = /x\p{Hex_Digit}\p{Hex_Digit}/u;
let regexp = /x\p{Hex_Digit}\p{Hex_Digit}/u;
alert("number: xAF".match(reg)); // xAF
alert("number: xAF".match(regexp)); // xAF
```
### Example: Chinese hieroglyphs