updated regex (major bugfixes), fixed docgen.newlines