Updating regex for _ tempaltes

cc @Raynos