>>101
すまんすまん
1行目の文字列はシングルクォートで囲ってちょ

raddr = '^(\d+)\.(\d+)\.(\d+)\.(\d+)$'
p egexp = Regexp.new(raddr)
if regexp =~ "192.168.0.1"
puts "まっち"
end