readline.add_history()
  • References/Python/Python/Text Processing

readline.add_history(line) Append line to the history buffer, as if it was the last line typed. This calls add_history()

2025-01-10 15:47:30
difflib.SequenceMatcher
  • References/Python/Python/Text Processing

class difflib.SequenceMatcher This is a flexible class for comparing pairs of sequences of any type, so long as the sequence

2025-01-10 15:47:30
re.error.msg
  • References/Python/Python/Text Processing

msg The unformatted error message.

2025-01-10 15:47:30
string.Template
  • References/Python/Python/Text Processing

class string.Template(template) The constructor takes a single argument which is the template string.

2025-01-10 15:47:30
re.match.expand()
  • References/Python/Python/Text Processing

match.expand(template) Return the string obtained by doing backslash substitution on the template string template,

2025-01-10 15:47:30
re.regex.pattern
  • References/Python/Python/Text Processing

regex.pattern The pattern string from which the RE object was compiled.

2025-01-10 15:47:30
re.regex.split()
  • References/Python/Python/Text Processing

regex.split(string, maxsplit=0) Identical to the split() function, using the compiled pattern.

2025-01-10 15:47:30
stringprep.map_table_b2()
  • References/Python/Python/Text Processing

stringprep.map_table_b2(code) Return the mapped value for code according to tableB.2 (Mapping for case-folding used

2025-01-10 15:47:30
re.match.span()
  • References/Python/Python/Text Processing

match.span([group]) For a match m, return the 2-tuple (m.start(group), m.end(group)). Note that if group

2025-01-10 15:47:30
re.match.groupdict()
  • References/Python/Python/Text Processing

match.groupdict(default=None) Return a dictionary containing all the named subgroups of the match, keyed by the subgroup

2025-01-10 15:47:30