From: Lucky Nl Date: 2012-02-06T15:13:38+09:00 Subject: How to keep list of reglar expressions into array I have morethan one regular expressions I want to keep all in array and iterate them to check my input matched or not reg1 = /ruby:\s*$/i reg2 = /rails:\s*$/i input1 = "ruby is my favorite language" i want to iterate regexp's array and check where input1 matching.But the porblem is not the porper way getting regexp in loop .It's returning string type can anybody help -- Posted via http://www.ruby-forum.com/.