From: Luca Roma Date: 2010-01-24T01:32:37+09:00 Subject: urls from gsub not correct i have some problems when i try to check urls after get them from gsub method. ex from the console: ('http://ale.it' =~ URI::regexp).nil?.to_s => "false" and it works fine but if i launch this: "http://ale.it".gsub(/http[s]?:\/\/[^\s]+/, ('\0' =~ URI::regexp).nil?.to_s) => "true" it doesn't work. How can i do, for get correct urls? thanks -- Posted via http://www.ruby-forum.com/.