# This is the default, since we are not doing Unicode use bytes; $_ = 'speed basic-2.0 5.5 basic-11.0'; # In order to match 'anything', we must also match any newlines (my $result) = /\A \w+ \s+ (.*) \z/msxg; print $result;