slindsey3000 slindsey3000 - 1 year ago 65
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"

Answer Source

Given s your string

 => ["", "", "", "", "", ""] 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download