June 13, 2017 Design 0

The regex below will help you find and extract the url of a link from within an html code. In the case below, it will find the href attribute that contains the word linkedin.com, and will return the full url.

1
<a [^>]*\bhref\s*=\s*"([^"]*linkedin.com[^"]*)