How to replace any thing between http:// and first slash / after http://?
i got a url as string i want to replace anything between http:// and first
slash / (in this example i want to replace proxy-63.somesite.com with
video2.de.secondsite.net). could any one tell me how this can be done
?Thanks
Note: data between http:// and first slash after it is dynamic so i cant
just use replace function!
http://proxy-63.somesite.com/sec(dfgghdfdgd987435392429324343241k)/video/600/500/12345678_mp4_h264_aac_2.m3u8
replaced with :
http://video2.de.secondsite.net/sec(dfgghdfdgd987435392429324343241k)/video/600/500/12345678_mp4_h264_aac_2.m3u8
No comments:
Post a Comment