In a WordPress project, when you miss the text domain in i18n functions, the strings will not be translated. With this regex you can check if the i18n functions __() and _e() have their text domain, and eventually use the substitution provided for adding it.