Have you tried it?

It will only take 5 minutes of your time to prove to your own satisfaction whether it will work for you or not. You may have some local idiosyncrasy which affects the UDF which we cannot replicate.

Give it a go and report back - both if it dows not work for you and also if it does. That way other people who stumble across this thread will be able to make use of the information.