I have noticed in the PHP regex library there is a choice between ereg and preg. What is the difference? Is one faster than the other and if so, why isn’t the slower one deprecated?
Are there any situations where it is better to use one over the other?
Visiting php.net/ereg displays the following:
Down the page just a bit further and we read this:
Note my emphasis.