fix
This commit is contained in:
parent
bfba392129
commit
8ae8e50edf
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ alert( "A\nB".match(/A[\s\S]B/) ); // A\nB (match!)
|
|||
|
||||
The pattern `pattern:[\s\S]` literally says: "a space character OR not a space character". In other words, "anything". We could use another pair of complementary classes, such as `pattern:[\d\D]`, that doesn't matter.
|
||||
|
||||
This trick 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.
|
||||
This trick works everywhere. Also we can use it if we don't want to set `pattern:s` flag, in cases when we want a regular "no-newline" dot too in the pattern.
|
||||
````
|
||||
|
||||
````warn header="Pay attention to spaces"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue