Replace all occurrences of ereg*() functions with preg*() functions.