diff --git a/regex_humanizer/translator.py b/regex_humanizer/translator.py index 830f55c..84a5728 100644 --- a/regex_humanizer/translator.py +++ b/regex_humanizer/translator.py @@ -1,6 +1,3 @@ -"""Translator for converting regex AST to human-readable English.""" - -from typing import Optional from .parser import ( RegexNode, NodeType, LiteralNode, CharacterClassNode, QuantifierNode, GroupNode, RegexParser @@ -282,7 +279,7 @@ class RegexTranslator: def _translate_backreference(self, node: RegexNode) -> str: """Translate a backreference.""" - return f"same as capture group \\\{node.raw}" + return f"same as capture group \\{node.raw}" def translate_regex(pattern: str, flavor: str = "pcre") -> str: