troubleshooting Question

Need to find the value between <tag> </tag> using VBscript

Avatar of electricd7
electricd7 asked on
VB Script
5 Comments1 Solution1267 ViewsLast Modified:
Hello,

I have using msxml to scrape the contents of a webpage into a variable (myvar).  Now I want to use VBscript to store the string between 2 specific tags found in the source.  The tags data I want is held between the following:

<div id="myscore">137475</div>

So I want to search the entire myvar variable and end up with a new variable that only holds the value "137475".  Can somone write a function that does this?  Seems like it would be fairly easy to do using InStr, but my brain is asleep this morning!

ED7
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros