Look for URL and make a variable out of it
    <p>Lorem ipsum dolor sit amet http://www.google.com/ consectetur adipisicing.</p>
What's the best way to go about making a variable out of the URL in the sentence above?

I want jQuery to search through the sentence and find something starting with `http` and make a variable out of it and everything that follows it until it hits a space character. So in this example, the variable's value will be `http://www.google.com/`.

I was thinking about something involving `:contains` and regex maybe?
Look for URL and make a variable out of it
===

    <p>Lorem ipsum dolor sit amet http://www.google.com/ consectetur adipisicing.</p>
What's the best way to go about making a variable out of the URL in the sentence above?

I want jQuery to search through the sentence and find something starting with `http` and make a variable out of it and everything that follows it until it hits a space character. So in this example, the variable's value will be `http://www.google.com/`.

I was thinking about something involving `:contains` and regex maybe?