Possible Duplicate:
How can I convert ereg expressions to preg in PHP?
The site I am working on has been migrated to a server using php 5.3.16 from 5.2.17 We have a problem with the function ereg being deprecated.
How can I resolve the issue with the following lines?
1) ereg("^[0-9]*$", $v[1])
2) ereg("^[-A-Za-z' ]+$", $v[4])
3) ereg("^4[0-9]{12}([0-9]{3})?$", $v[1])
4) ereg("^5[1-5][0-9]{14}$", $v[1])
5) ereg("^3[47][0-9]{13}$", $v[1])
6) ereg($exp, $value)