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 {s : String} : CaptureGroups s
- group {s : String} (tag : Nat) (first last : s.ValidPos) (rest : CaptureGroups s) : CaptureGroups s
- concat {s : String} (g₁ g₂ : CaptureGroups s) : CaptureGroups s
Instances For
def
Regex.Data.CaptureGroups.mem
{s : String}
(groups : CaptureGroups s)
(group : Nat × s.ValidPos × s.ValidPos)
:
Equations
Instances For
instance
Regex.Data.CaptureGroups.instMembershipProdNatValidPos
{s : String}
:
Membership (Nat × s.ValidPos × s.ValidPos) (CaptureGroups s)