fix template page name regex perfomance (v 2.1.4)

Change-Id: If66d3a7cdb38c4d650f003083a6dea67f4220997