vbscript regex against html data
Posted on 2009-04-20
I'm reading some code using msxml2.xmlhttp "GET" method.
A lot of functions and extraneous data is being returned that I'd like to easily filter out - I figure a reg ex is easiest.
There are basically two bits of information I'd like to pull from this data:
1) user name - this is the text following an <a href...> tag, but the user's real name is found in both alt="John Smith" and title="John Smith". Presumably if that's easier to grab, I could live with it as well...
2) the user's ID: This is inside a link tag, as a parameter (user=xxxxxx) (repeats several times), but also in <img uid="xxxxx"...> which might be easier to get.
I have one other piece of data I'd like to grab, but figure that deserves a new question.
Let me know if sample data is needed.