Skip to main content

Match.start

startgroup

Group: Metadata

Documentation

Returns the start grapheme index of a group.

Arguments

  • group: the group name or number. Marked groups defined in the regex are numbered starting at 1; group 0 refers to the entire match.

Remarks

What is a Character?

A character is defined as an Extended Grapheme Cluster, see Unicode Standard Annex 29. This is the smallest unit that still has semantic meaning in most text-processing applications.