Method Regexp.PCRE2.MatchContext()->set_offset_limit()

class Regexp.PCRE2.MatchContext

Method set_offset_limit

void set_offset_limit(int value)

Description

Limit how far an unanchored search can advance in the subject string. The default value is -1. The _pcre()->exec() function returns ERROR.NOMATCH if a match with a starting point before or at the given offset is not found.