On the solution of functional equations by the method of regularization