Regularity bounds by minimal generators and Hilbert function