Using mb_ereg_replace_callback to support mb strings.