Make the capturing of yaml content non greedy

The implementation of the regex was greedy, and content containing
three dashes in succession anywhere, would make the yaml parsing
fail completely.