ddrudik ... my hero, it works like a charm. You've saved med hours and hours of "trial an errror" ...
I made a version of your code and my old to collect all the data in the three first TD's and put them all into one single Item, like this.
<?php
$text = file_get_contents('http://landris.hh.se/4DACTION/WebShowRoll/1-21?offset=4320&update=0&rows=0&page=0&branch=4&group=-21&start=yes&stop=yes&order=ascending&web_cols=1&web_numChars=-');
$regex = "#
<tr>\s*
<td\s+style=[^>]+>\s*<font\s*class='a_text'>\s*([^>]*)</font>\s*</td>\s*
<td\s+style=[^>]+>\s*<font\s*class='a_text'>\s*([^>]*)</font>\s*</td>\s*
<td\s+style=[^>]+>\s*<font\s*class='a_text'>\s*([^>]*)</font>\s*</td>
#isx";
if(preg_match_all($regex, $text, $matches)) {
foreach ($matches[0] as $title) {
$title = strip_tags($title);
$title = str_replace(' ', '', $title); $title = trim($title); echo "<item>\n\t<title>" . strip_tags($title) . "</title>\n\t<description>" . strip_tags($title) . "</description>\n\t<guid>http://www.campus.varberg.se/".md5(uniqid()).".html</guid>\n</item>\n";
}
}
?>