Hi Benjamin,

I think you can find what you need right here in this blog:
http://badassery.blogspot.com/2007/02/parseuri-split-urls-in-javascript.html
I put up his code for testing purposes:
http://www.sozzi.cn/tests/ParseUri.htm

hope that is what you were looking for

regards

Angelo

On Jun 26, 6:29 am, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> 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.http://meridium.informationexperts.com/img/001.jpg,  where as every other
> browser on goods green earth does not.
>
> 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 Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com

Reply via email to