2
Answers

Parsing Html

Magnus

Magnus

17y
2k
1

I retrieve the content (html) of a webpage and I store it in a string. I want to parse the string and look for occurencies of a special id. The pages is quite large with plenty of html. The string I'm after can look like this:

/OrderServlet?view=order&orderid=199082')">

I just want the orderid, the number itself. It can be 5 orders or 20 orders in a page. How would you go about this?

Answers (2)