In fact, in any pretopos every monomorphism is regular (nLab link). However, I think that an explicit construction for the category of sets will be more insightful in this case.
Let $f: X \to Y$ be a monomorphism in $\mathbf{Set}$, so that means that $f$ is injective. Now we define two functions $Y \to \{0,1\}$. The first function $g: Y \to \{0,1\}$ will just be the constant function taking value 1, so $g(y) = 1$ for all $y \in Y$. Then for the second function $h: Y \to \{0,1\}$, we set $h(y) = 1$ if $y$ is in the image of $f$, and $h(y) = 0$ otherwise. So if $f$ is just an inclusion of sets, then $h$ is the characteristic function of $X$ as a subset of $Y$.
Now the equalizer of $g$ and $h$ is calculated as $E = \{y \in Y : h(y) = g(y)\} = \{y \in Y : h(y) = 1\}$ (the equalizer is then the inclusion $E \hookrightarrow Y$). So $E$ is precisely the image of $f$. Thus $f$ induces a bijection $X \to E$ and so we see that $f$ itself is an equalizer of $g$ and $h$.