Implement use case TranslateRegex.