xxxxxxxxxx
import std.stdio;
import std.algorithm;
import std.range;
import std.regex;
void main()
{
string output = "foo\n#bar\n\nbaz";
output
.split("\n")
.filter!(a=>a.length>0 && a[0]!='#')
.array
.map!(a=>matchFirst(a,r".*"))
.writeln;
}