struct

Scroll::SortKey::Pattern

Inherits Scroll::SortKey < Struct < Value < Object

A slash-delimited PCRE2 pattern, with named/first/whole capture precedence.

Constructors

new(regex : Regex)
Source

Instance methods

extract(line : String) : String

Extract the key substring from one line. Returns "" when the selector does not apply to the line (out-of-range column, or a non-matching regex); an empty key sorts first (ascending) / into the non-numeric bucket.

Source
regex
Source