Igor Sysoev wrote: I've attached a new version of this, any mistakes that you notice off the bat, as i'd like to make sure it's ok before going live with it. If not let me know what's still wrong and some more examples. Attachments: http://www.ruby-forum.com/attachment/3193/newrewrite.txt -- Posted via http://www.ruby-forum.com/.