Merge pull request #911 from oshliaer/9_03_article_strange-symbol
Just remove a strange symbol
This commit is contained in:
commit
02546081cc
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