A theorem on regular vector fields and its applications to almost contact structures