Remove deprecated ereg_replace in lib/captcha.php

Signed-off-by: Nick Ciske <nick@thoughtrefinery.com>