update template to include two new lines, add regex instead of in for matching