def
Regex.Matches.Spec
{re : Regex}
(s : re.IsSearchRegex)
(haystack : String)
(startPos : String.Pos)
(str : Substring)
:
The pair of positions returned by Matches functions conforms to the spec if and only if:
- the haystack can be split into
l,m, andrsuch thathaystack = l ++ m ++ r mstarts afterstartPos.- there is a regex match starting at
l, matching the substringm, and ending atr - the returned substring corresponds to
m.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- self.Valid = (self.regex.IsSearchRegex ∧ String.Pos.ValidPlus self.haystack self.currentPos)