Detected Deprecated php function

Found one line still using ereg. This function will not be available as
of PHP 5.4. Proposing replacement. Waiting for approval or comments.