re.match.pos
  • References/Python/Python/Text Processing

match.pos The value of pos which was passed to the search() or match() method of a regex

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

get_value(key, args, kwargs) Retrieve a given field value. The key argument will be either an integer or a string.

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

textwrap.dedent(text) Remove any common leading whitespace from every line in text. This

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

string.ascii_letters The concatenation of the ascii_lowercase and ascii_uppercase constants described

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

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

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

get_matching_blocks() Return list of triples describing matching subsequences. Each triple is of the form (i, j, n)

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

format_field(value, format_spec) format_field() simply calls the global

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

readline.set_startup_hook([function]) Set or remove the function invoked by the rl_startup_hook callback of the

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

re.subn(pattern, repl, string, count=0, flags=0) Perform the same operation as sub(), but return a tuple (new_string

2025-01-10 15:47:30