I have the following string:
<span class="ClassName @variable" title="ClassName @variable">Variable Title</span>
“ClassName”, “variable” & “Variable Title” are paramerters.
Now I want to extract the “ClassName”, “variable” and “Variable Title” from that sentence. How can I do that?
Javascript:
Where
stris your tag.Then…
Note that you should really use a proper HTML parser for this kind of thing rather than Regex but never mind 🙂