class

Crowbar::Selectors::Regex

Inherits Crowbar::Selector < Reference < Object

Selects regions matching a regular expression (with capture group support)

Constructors

new(pattern : ::Regex, group : Int32 = 0, weight : Float64 = 1.0)
Source

Instance methods

group
Source
pattern
Source
select(buffer : Buffer) : Array(Tuple(Int32, Int32))

Returns an array of target ranges {start_index, end_index_exclusive}

Source