I have a url like the following.
http:// myipaddress/folder1/folder2/themes/index.html
Does anyone know of the best approach to always grab whats before and not including /themes/ using javscript string manipulation reg exp techniques. The first bit will regularly be different to the /themes/index.html which is static
str.split("/themes")[0]"http:// myipaddress/folder1/folder2/themes/index.html".replace("/themes/index.html", "")/themesis always known in advance, which may not be the case.