fix
This commit is contained in:
parent
35d7501162
commit
8c8dde6abb
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ Luckily, there's an alternative, that works everywhere. We can use a regexp like
|
|||
alert( "A\nB".match(/A[\s\S]B/) ); // A\nB (match!)
|
||||
```
|
||||
|
||||
The pattern `regexp:[\s\S]` literally says: "a space character OR not a space character", that is "anything".
|
||||
The pattern `pattern:[\s\S]` literally says: "a space character OR not a space character", that is "anything".
|
||||
|
||||
This works everywhere. Also we can use it if we don't want to use `pattern:s` flag, in cases when we want a regular "no-newline" dot too in the pattern.
|
||||
````
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue