thanks Peña, admittedly regular expressions have never been my strong 
point ;-)

will give this a go,



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