Fix typo.
This commit is contained in:
parent
f2078b1d80
commit
c3979cdd41
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ alert( "CS-4".match(regexp) ); // CS-4
|
||||||
alert( "CS 4".match(regexp) ); // CS 4 (space is also a character)
|
alert( "CS 4".match(regexp) ); // CS 4 (space is also a character)
|
||||||
```
|
```
|
||||||
|
|
||||||
Please note that a dot means "any character", but not the "absense of a character". There must be a character to match it:
|
Please note that a dot means "any character", but not the "absence of a character". There must be a character to match it:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
alert( "CS4".match(/CS.4/) ); // null, no match because there's no character for the dot
|
alert( "CS4".match(/CS.4/) ); // null, no match because there's no character for the dot
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue