Detected deprecated php function

Found two lines still using ereg function. This will throw errors under
PHP>5.3. Use preg_match instead.