Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?
- ([^"]+)
- var str = '<a href="example.com"></a><a href="example2.com"></a><a href="example3.com"></a>';
- var pattern = /href="([^"]+)/g;
- var match = pattern.exec(str);
- while (match != null) {
- console.log(match[1]);
- match = pattern.exec(str);
- }
Add Comment
Please, Sign In to add comment