Castelnuovo-Mumford regularity by approximation