re.compile()
  • References/Python/Python/Text Processing

re.compile(pattern, flags=0) Compile a regular expression pattern into a regular expression object, which can be used for matching

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

match.lastgroup The name of the last matched capturing group, or None if the group didn’t have a name, or if no

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

stringprep.in_table_c6(code) Determine whether code is in tableC.6 (Inappropriate for plain text).

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

stringprep.in_table_d2(code) Determine whether code is in tableD.2 (Characters with bidirectional property “L”).

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

set_seqs(a, b) Set the two sequences to be compared.

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

string.octdigits The string '01234567'.

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

stringprep.in_table_c21(code) Determine whether code is in tableC.2.1 (ASCII control characters).

2025-01-10 15:47:30
textwrap.TextWrapper.max_lines
  • References/Python/Python/Text Processing

max_lines (default: None) If not None, then the output will contain at most max_lines lines

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

difflib.unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare a and

2025-01-10 15:47:30
string.Formatter.convert_field()
  • References/Python/Python/Text Processing

convert_field(value, conversion) Converts the value (returned by get_field()) given a conversion type (as in the

2025-01-10 15:47:30