Fix issue in regex with new lines