Selection of DNA binding sites by regulatory proteins