BytesRegex::Regex
Inherits Reference / Object
Constants
EMPTY_MATCHES = [] of Match
Shared empty result for the no-match path (allocation cut — misses
vastly outnumber hits). Callers only ever read it (match.size == 0
/ indexing after a hit), so one instance serves every miss.
Instance methods
match(str : Bytes, pos = 0) : Array(Match)
Source