I have a massive while loop that takes a url and grabs the contents of that page I then do:
$test->get_tag("ul");
my $test2 = $test->get_trimmed_text("/ul");
so for each page it grabs everything in the UL tags what contains all the URL. For example $test will contain:
http://test1 http://test2 http://test3 http://test4 http://test?name=MS:MS000-0000
I need to search the list of URL for a certain word that starts with MS:MS and end in number for example MS:MS00-000 I need to grab that number and store it in another variable. So the time the loops has done I should have a list of lots MS:MS numbers.
Hope that makes it a bit clearer

Thanks