Groups captured by a regex match.
- For
.group tag first last rest, the group with tagtagstarts at positionfirstand ends at positionlast. It will overwrite the positions with the same tag inrest. .concat g₁ g₂joins the capture groups for concatenations by preferring the groups ing₂overg₁. (Last write wins.)
- empty : CaptureGroups
- group (tag : Nat) (first last : String.Pos) (rest : CaptureGroups) : CaptureGroups
- concat (g₁ g₂ : CaptureGroups) : CaptureGroups
Instances For
Equations
Instances For
@[simp]
@[simp]
theorem
Regex.Data.CaptureGroups.mem_group
{group : Nat × String.Pos × String.Pos}
{tag : Nat}
{first last : String.Pos}
{rest : CaptureGroups}
:
@[simp]
theorem
Regex.Data.CaptureGroups.mem_concat
{group : Nat × String.Pos × String.Pos}
{g₁ g₂ : CaptureGroups}
: