If location information has been omitted (e.g., via ~sub), the error returned is
Regex_no_such_subpattern, just as though that subpattern were never defined.
get_pos_exn ~sub t returns the start offset and length in bytes. Note that for
variable-width encodings (e.g., UTF-8) this may not be the same as the character
offset and character length.