original_docstring: 
          Return the length of the matching text if
          seq (a regular expression) matches the present position.
          
docstring: Return the length of the matching text if
  seq (a regular expression) matches the present position.
docstring_tokens: Return the length of the matching text if seq ( a regular expression ) matches the present position .
code: def match_regexp_helper(self, s, i, pattern):
          """
          Return the length of the matching text if
          seq (a regular expression) matches the present position.
          """
          try:
              flags = re.MULTILINE
              if self.ignore_case:
                  flags |= re.IGNORECASE
              re_obj = re.compile(pattern, flags)
          except Exception:
              # Do not call g.es here!
              g.trace(f"Invalid regular expression: {pattern}")
              return 0
          # Match succeeds or fails more quickly than search.
          self.match_obj = mo = re_obj.match(s, i)  # re_obj.search(s,i)
          if mo is None:
              return 0
          start, end = mo.start(), mo.end()
          if start != i:  # Bug fix 2007-12-18: no match at i
              return 0
          return end - start
code_tokens: def match_regexp_helper ( self , s , i , pattern ) : try : flags = re . MULTILINE if self . ignore_case : flags |= re . IGNORECASE re_obj = re . compile ( pattern , flags ) except Exception : g . trace ( f"Invalid regular expression: {pattern}" ) return 0 self . match_obj = mo = re_obj . match ( s , i ) if mo is None : return 0 start , end = mo . start ( ) , mo . end ( ) if start != i : return 0 return end - start
short_docstring: Return the length of the matching text if
  seq (a regular expression) matches the present position.
short_docstring_tokens: Return the length of the matching text if seq ( a regular expression ) matches the present position .
comment: """
          Return the length of the matching text if
          seq (a regular expression) matches the present position.
          """$SEP$# Do not call g.es here!$SEP$# Match succeeds or fails more quickly than search.$SEP$# re_obj.search(s,i)$SEP$# Bug fix 2007-12-18: no match at i