adapted the function args for ereg

And that actually seems to be it, all tests pass so far. So lets
see how it goes in the fture, too easy but seems to be done for now .