"some text exampley.com".match(/your regular expression goes here/);
The regular expression needs to
- capture all valid URLS that are for http and https.
- not worry about not matching for URL looking strings that aren't actually valid URLS like
- Good Morning
Here is a test that might help clarify a bit http://jsfiddle.net/MikeGrace/gsJyr/
I apologize for the lack of clarity, I hadn't realized how awful matching URLs was.