The idea is good... but I don't really how that function does anything usefull...
Your function reg_check() returns true or false after evaluating the regular expression.... the php function ereg() does exactly the same thing.... so... I don't see why you need to wrap it in another function for...
... maybe if your wrapper function did something usefull... but it doesn't. It just passes on the parameters to ereg().
Maybe try adding some extra functionality to your wrapper function... so it does something extra that ereg() doesn't do...
Cya man,
- Adam 🙂