I'm trying to get the value of an attribute, given the preceding text. Say I have this:
<meta content="firsttag" name="datatoget" />
I want to get the value
of name (datatoget).
I know what's before the specific attribute (<meta ... name="
)
How can I, using regular expressions, get this value?
I got content="firstag" name=".*"
, which will return what I wanted, but with the surrounding text. Basically I want the `.* part.