up
This commit is contained in:
parent
aa521b9090
commit
d1a0659aba
13 changed files with 27 additions and 33 deletions
|
@ -237,7 +237,7 @@ Let's modify the pattern by making the quantifier `pattern:.*?` lazy:
|
|||
let str = '...<a href="link1" class="doc">... <a href="link2" class="doc">...';
|
||||
let reg = /<a href=".*?" class="doc">/g;
|
||||
|
||||
// Сработало!
|
||||
// Works!
|
||||
alert( str.match(reg) ); // <a href="link1" class="doc">, <a href="link2" class="doc">
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue