I don't think the ereg functions support this, but the preg functions have something called lookahead which is very handy.
example:
$text = preg_replace('#"(?!mailto🙂(["]+)"#', $replacement, $text);
is the delimiter
(?!mailto🙂 is the lookahead, making sure whatever follows doesn't start with mailto:
all other elements are not different from ereg.