  Let $\mathbb{K}$ be an uncountable field of characteristic zero and let $f$
be a function from $\mathbb{K}^n$ to $\mathbb{K}$. We show that if the
restriction of $f$ to every affine plane $L\subset\mathbb{K}^n$ is regular,
then $f$ is a regular function.
