Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

StringScanner#scan_full

scan_full(pattern, advance_pointer_p, return_string_p)

Tests whether the given pattern is matched from the current scan pointer. Advances the scan pointer if advance_pointer_p is true. Returns the matched string if return_string_p is true. The match register is affected.

“full” means “#scan with full parameters”.

See also #scan #scan_until #restsize #search_full also in 3.2 · 3.1 · 3.0