Improved the regex for searching i18n strings in templates