slindsey3000 slindsey3000 - 5 months ago 29
Ruby Question

Pull all URLS out of this string in Ruby with scan method

I have searched far and wide but cannot find an answer that works. Please test out any links or "already answered here" responses. I have been looking for 3 hours.

Here is my string. Pull out all 6 URLS even if http(s) is not there.

"This string has some urls.For example it has and and then you can see and these are all things that should be detected like or"


Given s your string

 => ["", "", "", "", "", ""]