I have a hash that looks something like this:
params = { :irrelevant => \"A String\", :choice1 => \"Oh look, another one\", :choi
If you want the remaining hash:
params.delete_if {|k, v| ! k.match(/choice[0-9]+/)}
or if you just want the keys:
params.keys.delete_if {|k| ! k.match(/choice[0-9]+/)}