hi all, i wish to ask for guidance on how to do this. i have links below for example: https://r14---sn-bvvbax-hjpl.googlevideo.com/videoplayback?mn=sn-bvvbax-hjpl%2Csn https://r9---sn-bvvbax-hjpe.googlevideo.com/videoplayback?ipbits=0&initcwndbps=5 https://r15---sn-bvvbax-hjpe.googlevideo.com/videoplayback?ipbits=0&initcwndbps=558750 https://r10---sn-bvvbax-hjpe.googlevideo.com/videoplayback?dur=360.164&ratebypass what i want is to get rid of the random string: r14---sn-bvvbax-hjpl.googlevideo.com r9---sn-bvvbax-hjpe.googlevideo.com r15---sn-bvvbax-hjpe.googlevideo.com r10---sn-bvvbax-hjpe.googlevideo.com and replace with the following string: redirector.googlevideo.com hope someone could shed light, show me the proper code. thank you very much.
thanks all. already found the solution: $text=preg_replace("/https:\/\/(.*)\.googlevideo\.com/", "https://redirector.googlevideo.com", $text); PHP: