This commit is contained in:
Ilya Kantor 2019-04-25 21:19:15 +02:00
parent b2f89741a0
commit 3465665ca7

View file

@ -41,7 +41,7 @@ We've seen this method already. It returns the position of the first match or `-
```js run
let str = "A drop of ink may make a million think";
alert( str.search( *!*/a/i*/!* ) ); // 0 (the first position)
alert( str.search( *!*/a/i*/!* ) ); // 0 (first match at zero position)
```
**The important limitation: `search` only finds the first match.**