JSFiddle - React, Tailwind, and code Playground

by John Allan

HTML

str =

JavaScript

str = 'This is a linked ad <a href="http://other.com">link text</a> fdjaklfalksfa <a href="https://www.stuff.com">fdjkfdlas</a>';

console.log(str.match(/href=['"](.+?)['"]/gim));