title: Why is `ereg` deprecated in PHP?
body: <p>Why is <code>ereg</code> deprecated in PHP?</p>
  
  <p>I had a lot of functions which used this, now they always give warning.</p>
  
  <p>What is the alternative of this too?</p>