remove deprecated ereg use