Documentation

Regex.Basic

Regex #

Definitions for Regex api

@[reducible, inline]
Equations
Instances For
    @[reducible, inline]
    abbrev Regex.ValidPos (s : String) :
    Equations
    Instances For
      Equations
      Equations
      @[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.
        structure Regex.Captures (s : String) :

        Represents the full match and capture groups for a single match in s.

        Instances For
          theorem Regex.start_pos_valid_of {s : ValidSubstring} (captures : Captures s.val.str) :
          String.Pos.Valid s.val.str captures.fullMatch.val.startPos
          theorem Regex.stop_pos_valid_of {s : ValidSubstring} (captures : Captures s.val.str) :
          String.Pos.Valid s.val.str captures.fullMatch.val.stopPos