From: Bob Sanders Date: 2008-10-26T06:43:55+09:00 Subject: Extracting information from "john-2222-8888@domain.com" Hello, I'm wondering how you'd extract information from an email address like "john-2222-8888@domain.com" to get these results from that email: @player_id = 2222 @game_id = 8888 I'm thinking it's something along the lines of: email = john-2222-8888@domain.com @player_id = email.gsub(...) @game_id = email.gsub(...) Any ideas what belongs in the gsubs? -- Posted via http://www.ruby-forum.com/.