>>913
text ="
https://i.imgur.com/UJbFSti.jpg
http://www.ruby-lang.org/
"
text.scan(URI.regexp).map { Regexp.last_match }.each { |uy|
puts uy
}