Regular magnetic black holes and monopoles from nonlinear electrodynamics