This expands to ^<escaped_template_name>\.[rR]$ so that I only need to count the results.