Skip to content

Commit 2b1d670

Browse files
committed
selection
1 parent 5c492da commit 2b1d670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

03-regexp-unicode/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ We can search for characters with a property, written as `pattern:\p{…}`. To u
4141

4242
For instance, `\p{Letter}` denotes a letter in any of language. We can also use `\p{L}`, as `L` is an alias of `Letter`. There are shorter aliases for almost every property.
4343

44-
In the example below three kinds of letters will be found: English, Georgean and Korean.
44+
In the example below three kinds of letters will be found: English, Georgian and Korean.
4545

4646
```js run
4747
let str = "A ბ ㄱ";
4848

4949
alert( str.match(/\p{L}/gu) ); // A,ბ,ㄱ
50-
alert( str.match(/\p{L}/g) ); // null (no matches, as there's no flag "u")
50+
alert( str.match(/\p{L}/g) ); // null (no matches, \p doesn't work without the flag "u")
5151
```
5252

5353
Here's the main character categories and their subcategories:

0 commit comments

Comments
 (0)