a regular polygon has all equal angles, interior and exterior, as well as all equal sides.
Check the picture below.
the one on the left is a regular octagon, as well as a convex one.
the one on the right is also an octagon, but is concave, the issue is that, though all sides remain equal, the angles do not, and so is not a regular octagon.