reg->regexp
This commit is contained in:
parent
4232a53219
commit
32e20fc97c
35 changed files with 132 additions and 132 deletions
|
@ -2,8 +2,8 @@
|
|||
Solution:
|
||||
|
||||
```js run
|
||||
let reg = /\.{3,}/g;
|
||||
alert( "Hello!... How goes?.....".match(reg) ); // ..., .....
|
||||
let regexp = /\.{3,}/g;
|
||||
alert( "Hello!... How goes?.....".match(regexp) ); // ..., .....
|
||||
```
|
||||
|
||||
Please note that the dot is a special character, so we have to escape it and insert as `\.`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue