Alternatively, you could start from the end and locate the first field with an offset less than ours, which is what I'm going to claim I had in mind.