It appears I'd made a regex consume one too many characters...