Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

StringScanner#search_full

search_full(pattern, advance_pointer_p, return_string_p)

Scans the string until the pattern is matched. Advances the scan pointer if advance_pointer_p, otherwise not. Returns the matched string if return_string_p is true, otherwise returns the number of bytes advanced. This method does affect the match register.

See also #scan_until #size #scan_full #skip also in 3.3 · 3.2 · 3.0