Fixed broken and single line only output

pyCharm regexes FTW