This is an exercise in Hartshorne's book.
For a quasi projective variety $Y$ with dimension $\geq 2$ and $p \in Y$ a normal point, if $f$ is regular on $Y-\{p\}$ then $f$ can be extended to a regular function on $Y$.
I want to get some hints to prove this problem....