http://stackoverflow.com/questions/3132844/function-ereg-replace-is-deprecated-how-to-clear-this-bug