If you don't have to use pos(), then see my first post.

-- 
Posted via http://www.ruby-forum.com/.