i'm trying to learn regex parse in javascript.
I need to read the text in a "span"
<span class="item_color_title">Status:</span>
<span class="item_color_success">
Alive
</span>
"Alive" is what i need. Any easy way out?
This is for a firefox extension, where i've:
var req = new XMLHttpRequest();
req.open('GET', 'http://www.example.com/', false);
req.send(null);
if(req.status == 200)
standard_status.label = req.responseText;
And, standard_status should say "Alive"
Thanks!!