Revert "Fix typo with regex_match_to_long"

This reverts commit 41c566b4839c7227f4edfa816f4324dc356f8bc7.

The original function was correct: regex_match_to_long converts a
match to a long; it does not generate an error for "too long".