updated to remove deprecated ereg function
Merge pull request #4 from nogorilla/master

updated to remove deprecated ereg function