I'd like to have bash parse/extract a full URL (and only the url) from a random short string.
bob, the address is http://www.google.com
https://foo.com/category/example.html is up
Error 123 occurred at http://bit.ly/~1223456677878
Stats are up: https://foo1234.net/report.jpg
I tried using
cat foo_output | egrep -o "https?://[\w'-\.]*\s" but that didn't seem to work.