In ubuntu regex did not read over newlines. Fixed now