## Check for failure. return $self->error("pattern match timed-out") if $s->{timedout};