docstr: Input: "a) ffegnog (b) fgegkl c)"
  Output: "
  a) ffegnog 
  &✂&b) fgegkl 
  c)"
docstr_tok: ["Input",":","``","a",")","ffegnog","(","b",")","fgegkl","c",")","''","Output",":","``","a",")","ffegnog","&","\u2702","&","b",")","fgegkl","c",")","''"]
code: def replace_alphabet_list_parens(self, a):
      """
      Input: "a) ffegnog (b) fgegkl c)"
      Output: "\ra) ffegnog \r&✂&b) fgegkl \rc)"
      """
  
      def replace_alphabet_paren(match, val=None):
          match = match.group()
          if "(" in match:
              match_wo_paren = match.strip("(")
              if match_wo_paren == val:
                  return "\r&✂&{}".format(match_wo_paren)
              else:
                  return match
          else:
              if match == val:
                  return "\r{}".format(match)
              else:
                  return match
  
      # Make it cases-insensitive
      txt = re.sub(
          self.EXTRACT_ALPHABETICAL_LIST_LETTERS_REGEX,
          partial(replace_alphabet_paren, val=a),
          self.text,
          flags=re.IGNORECASE,
      )
      return txt
  
imports: import string
  import re
  from pysbd.utils import Rule, Text
  from functools import partial
label_desc: Use image node_id 17 for calling the ListItemReplacer obj's underlying member method code with example usage: obj.replace_alphabet_list_parens(a) and returns: txt, str, match, str, match