re.match.start()
  • References/Python/Python/Text Processing

match.start([group]) match.end([group]) Return the indices of the start and end of the substring matched by group;

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

class difflib.HtmlDiff This class can be used to create an HTML table (or a complete HTML file containing the table) showing

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

textwrap.shorten(text, width, **kwargs) Collapse and truncate the given text to fit in the given width.

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

unicodedata.decimal(chr[, default]) Returns the decimal value assigned to the character chr as integer. If no such

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.fullmatch()
  • References/Python/Python/Text Processing

re.fullmatch(pattern, string, flags=0) If the whole string matches the regular expression pattern, return

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

regex.fullmatch(string[, pos[, endpos]]) If the whole string matches this regular expression, return a corresponding

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

regex.groups The number of capturing groups in the pattern.

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

unicodedata.east_asian_width(chr) Returns the east asian width assigned to the character chr as string.

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

stringprep.in_table_c9(code) Determine whether code is in tableC.9 (Tagging characters).

2025-01-10 15:47:30