Duality and Regular Languages