A comment is needed. @scanner[1] means the nth subgroup in the most recent match. The most recent match is made by slurp
calling scan_until. The pattern may be a pattern that matches "end of input" (as string terminator), or a real string terminator ' " which needs to be stripped.