[jQuery] reg expression for finding url [more of a javascript question]
Hey guys and gals,
Wondering if anyone has a function or if someone can help me put one together that will find a url in a string?
What needs to be done is to find a start point of "http://" or "https://" and an end point of ".com" or ".net"... etc...
The reason for the need, I am bringing pages in via .load and on the page there are img tags that reference a fold that is inline with the page I am bringing in. Since the page that is bringing these other pages is at the root, I need to append a path to the src tag. Problem is that IE, when bringing in the page, already appends the url to the src, ie.
<a href="http://meridium.informationexperts.com/img/001.jpg">http://meridium.informationexperts.com/img/001.jpg</a>, where as every other browser on goods green earth does not.<br clear="all">
I searched the web for the answer and since I don't full grasp the reg expression process, I am dead in the water.
Thanks.
--
Benjamin Sterling
<a href="http://www.KenzoMedia.com">http://www.KenzoMedia.com</a>
<a href="http://www.KenzoHosting.com">http://www.KenzoHosting.com</a>