Regex #
Definitions for Regex api
@[reducible, inline]
Represents a single match of a regex in a haystack.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Represents the full match and capture groups for a single match in s.
- fullMatch : Match
the full match
the capture groups, empty groups can arise, for example, in alternatives
- isSubsliceOf : String.Slice.isSubslice self.fullMatch s
fullMatchis a subslice ofs. - areSubslicesOf (g : Match) : g ∈ Array.filterMap id self.groups → String.Slice.isSubslice g s
all matches in
groupsare subslices ofs.