Project

General

Profile

Bug #10539 ยป example.rb

tammo (tammo tjarks), 11/24/2014 03:57 PM

 
a = ['moin','test','whatever']

ex_strings = ["TOMATCH moin","SHOULNDTMATCH whatever"]

ex_strings.each do |str|
if str =~ /TOMATCH #{a.join("|")}/ then
puts str
end
end
    (1-1/1)