my ($prefix, $content) = $line =~ / ^ \s* ([*#]+:?) \s* (.*?) \s* $ /x [download]
In reply to Re: Regex: not the trailing whitespace by wind in thread Regex: not the trailing whitespace by John M. Dlugosz