The Castelnuovo-Mumford regularity of binomial edge ideals