> How does one get the value of a variable into a regular expression? require 'test/unit'
class TC_Spike < Test::Unit::TestCase
def test_1950
var = 1950
data = "xxx1950xxx"
assert_match(/#{var}/,data)
end
end
_______________________________________________
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/wtr-general
