I have a stream reader that contains multiple IPs, somewhere within. I want to automatically extract all the IP's from the stream and ports.
Basically its a response from a get request, all ips and ports are represented like this:
<th>xx.xx.xx.xx</th>
<th>port</th>
I already have a regex expression to get the ip. Basically what i want to do is for each match found, to get the match, move "</th><th>".Length
bytes forward, and then retrieve the port, and insert it as an IPAddress object to a list.
The problem is How can this be done when the regex needs to retrieve multiple results.