regexp-character-classes: wording
This commit is contained in:
parent
19223ae762
commit
e41783a78e
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ Another example: a regexp `pattern:\b\d\d\b` looks for standalone two-digit numb
|
||||||
alert( "1 23 456 78".match(/\b\d\d\b/g) ); // 23,78
|
alert( "1 23 456 78".match(/\b\d\d\b/g) ); // 23,78
|
||||||
```
|
```
|
||||||
|
|
||||||
```warn header="Word boundary doesn't work for non-English alphabets"
|
```warn header="Word boundary doesn't work for non-Latin alphabets"
|
||||||
The word boundary check `\b` tests for a boundary between `\w` and something else. But `\w` means an English letter (or a digit or an underscore), so the test won't work for other characters (like cyrillic or hieroglyphs).
|
The word boundary check `\b` tests for a boundary between `\w` and something else. But `\w` means an English letter (or a digit or an underscore), so the test won't work for other characters (like cyrillic or hieroglyphs).
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue