Improves compatibiity with ionize 1.0.6

Function ereg_replace() is deprecated. Replaced by preg_replace();
Merge pull request #4 from acemir/master

Improves compatibility with ionize 1.0.6 
Function ereg_replace() is deprecated. Replaced by preg_replace();