Fix typo
The output when using character class \ s except for look-behind is ' HTML5'.
This commit is contained in:
parent
b88b4dc711
commit
7067d6275f
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ alert( str.match(reg) ); // CSS4
|
|||
Also we can use many character classes:
|
||||
|
||||
```js run
|
||||
alert( "I love HTML5!".match(/\s\w\w\w\w\d/) ); // 'HTML5'
|
||||
alert( "I love HTML5!".match(/\s\w\w\w\w\d/) ); // ' HTML5'
|
||||
```
|
||||
|
||||
The match (each character class corresponds to one result character):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue