Here $X$ and $Y$ are real-valued random variables, $X$ is integrable.
We know any version of $E[X|Y]$ can be written as a function of $Y$, say $f(Y)$. I can prove when $P(Y = y) > 0$, $f(y)$ is the same for different versions of $f$. Today I see a claim that $f(y)$ is just $\frac{E[X1_{Y=y}]}{P(Y = y)}$ in such scenario, this looks intuitively correct, but how to prove it?
By the defintion of conditional expectation $f(Y)=E(X|Y)$ implies that $E[f(Y)1_{Y^{-1}(A)}]=E[X1_{Y^{-1}(A)}]$ for every Borel set $A$. Taking $A=\{y\}$ we get $E[f(Y)1_{Y=y}]=E[X1_{Y=y}]$. But $E[f(Y)1_{Y=y}]=E[f(y)1_{Y=y}] =f(y)P(Y=y)$. So $E[X1_{Y^{-1}(A)}]=f(y)P(Y=y)$. Divide by $P(Y=y)$ to finish.