OptionalflagsOptionalgroupCapture number or name. Defaults to 0, the complete match.
OptionalmatchOne-based, non-overlapping match number. Defaults to 1; maximum 10,000.
OptionalmaxGrapheme limit, default 200. Invalid, negative, or zero lengths return empty text.
OptionalpatternRE2 pattern, without / delimiters. Omit to truncate the entire text.
Supported flags: i (case insensitive), m (line anchors), s (dot includes newline).