$f(z):=\dfrac{z(i-z)}{e^{2\pi z}-1} (-1<\text{Im} z<2).$
If denominator is $0$, $e^{2\pi z}=1$.
Let $z=x+iy$ and I get $e^{2\pi x}e^{2\pi y i}=e^0,$ so $z=0,i$.
Therefore, $z=0,i $ are isolated singularities.
But my mathematics book says that $f(z)$ is regular at $z=0,i$.
I understood $f(z)$ is regular at $z=0$ because $f(z)=\dfrac{z(i-z)}{\sum_{k=0}^{\infty} \frac{z^k}{k !}-1} =\dfrac{z(i-z)}{\sum_{k=1}^{\infty} \frac{z^{k}}{k !}}=\dfrac{i-z}{\sum_{k=0}^{\infty} \frac{z^k}{(k+1)!}}$ so $z=0$ is not isolated singularity.
But I cannot understand why $f(z)$ is regular at $z=i$.
I would like you to give me some ideas.
Note that\begin{align}\lim_{z\to i}\frac{e^{2\pi z}-1}{z-i}&=2\pi e^{2\pi i}\\&=-2\pi\end{align}and that therefore\begin{align}\lim_{z\to i}\frac{z(i-z)}{e^{2\pi z}-1}&=-\lim_{z\to i}\frac z{\frac{e^{2\pi z}-1}{z-i}}\\&=\frac i{2\pi}.\end{align}Therefore, yes, $i$ is a regular point (or removable singularity) of $f$.