Measuring the cosmological constant with redshift surveys