From: Hans Mackowiak Date: 2011-07-27T22:06:54+09:00 Subject: Re: String manuplation example if you use match(/[\/\w]+/)[0] you will get all chars and / up to the first non alpha numeric, (like an space ) so it does work with all your strings -- Posted via http://www.ruby-forum.com/.