Just remove a strange symbol
This commit is contained in:
parent
1d19bcbe6c
commit
4966420eaf
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ alert( "Hello, Java!".match(/\bHell\b/) ); // null (no match)
|
|||
alert( "Hello, Java!".match(/\bJava!\b/) ); // null (no match)
|
||||
```
|
||||
|
||||
Once again let's note that `pattern:\b` makes the searching engine to test for the boundary, so that `pattern:Java\b` finds `match:Java` only when followed by a word boundary, but it does not add a letter to the result. §
|
||||
Once again let's note that `pattern:\b` makes the searching engine to test for the boundary, so that `pattern:Java\b` finds `match:Java` only when followed by a word boundary, but it does not add a letter to the result.
|
||||
|
||||
Usually we use `\b` to find standalone English words. So that if we want `"Java"` language then `pattern:\bJava\b` finds exactly a standalone word and ignores it when it's a part of `"JavaScript"`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue