use \n in place of $:
(my $c) = $a =~ /^b\s+(.*?)\n/m; [download]
In reply to Re: regexp need a match characters and spaces by GrandFather in thread regexp need a match characters and spaces by jeanluca