Module Oniguruma.Region
Match results.
val length : t -> intlength regiongets the number of captures.
val capture_beg : t -> int -> intcapture_beg region idxgets the string position of the capture at the index. The capture at index 0 is the entire match. The string position is an offset in bytes. Returns -1 if the capture group wasn't found. RaisesInvalid_argumentif the index is out of bounds.
val capture_end : t -> int -> intcapture_end region idxgets the string position of the capture at the index. The capture at index 0 is the entire match. The string position is an offset in bytes. Returns -1 if the capture group wasn't found. RaisesInvalid_argumentif the index is out of bounds.