created template, fixed regex