my $result = join ' ', (split m/ /, $string)[0, 3]; [download]
In reply to Re: Regular expression help by moritz in thread Regular expression help by ashnator