The simplest solution is probably a scalar UDF. Quite easy to develop - one C loop.
Attachments
Library
Quick Reference
Archives
Sample Index
2015 Indexes