L
Luca Roma
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]+/, ('\0' =~
URI::regexp).nil?.to_s)
=> "true"
it doesn't work.
How can i do, for get correct urls?
thanks
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
URI::regexp).nil?.to_s)
=> "true"
it doesn't work.
How can i do, for get correct urls?
thanks