commit
6d111471ae
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ Here's what a search for a slash `'/'` looks like:
|
|||
alert( "/".match(/\//) ); // '/'
|
||||
```
|
||||
|
||||
From the other hand, if we're not using `/.../`, but create a regexp using `new RegExp`, then we no need to escape it:
|
||||
On the other hand, if we're not using `/.../`, but create a regexp using `new RegExp`, then we don't need to escape it:
|
||||
|
||||
```js run
|
||||
alert( "/".match(new RegExp("/")) ); // '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue