Regularity of solutions of a degenerate elliptic variational problem.