String manipulation problem in ASP VBscript?

  • Thread starter Thread starter Joca
  • Start date Start date
J

Joca

Guest
String:

"...lots of changing stuff..etc..total hits>523</span></span>...again lots of stuff..."

now what i need to retrieve is the number 523 assuming that:

- Number 523 might be any number, with any number of digits.

- Size to the left and to the right of the target number changes.

- "total hits>" is unique within the string.

- "</span>" is in a lot of places within the string - before and after.

- Before the target number there's always "total hits>"

- After the target number there's always "</span>".

Can you help me on this one?
 
Back
Top