Thanks Chris, Sorry for my bad submision of my problem.
I use now this: $URL = "http://www.eelco.com"; use LWP::Simple; ($string = get ($URL)) =~ s/\015?\012/\n/g; $string =~ /<META\s+NAME="keywords"\s+CONTENT="(.+?)".*?>/is; $keywords = $1; and I get now the keywords, but now I olso want to filter out any new lines in $ keywords. I want to write the keywords to a text file and it needs to be all on 1 line. The output off $keywords is now: blues brothers blues brothers blues brothers blues brothers sounds images links information pictures mickey mouse magic and it needs to be all written word after word. I try'd it whit: $keywords =~ s/\s{2}/ /g; and whit: $keywords =~ s/^\s+/ /g; and whit: $keywords =~ s/\s+$/ /g; But all whit no result, the last 2 options I found in the perl cookbook at page 30 So my question again, how wil I fix this