A proof for a conjecture on the regularity of binomial edge ideals