Hi there,
Assume for a minute that I have the following in a document.
<a href="http://www.domain.com">domain</a>
<meta name="nameofmeta" content="wohoo, metacontenthere">
What I'd like to do is to extract the data inside the the "" after the href and extract the data in name and content after inside the "".
How abouts would I do this? There are several ways I can think of but such as preg but I would imagine somebody here has a better way. ๐
It needs to be fairly standardised, for example I could get the below:
<a attributes-here href="domain.com">domain-hello</a>
Any help would be appreciated,
Chris ๐