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

match.group([group1, ...]) Returns one or more subgroups of the match. If there is a single argument, the result is a single

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

unicodedata.mirrored(chr) Returns the mirrored property assigned to the character chr as integer. Returns 1

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

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

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

set_seq2(b) Set the second sequence to be compared. The first sequence to be compared is not changed.

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

regex.subn(repl, string, count=0) Identical to the subn() function, using the compiled pattern.

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