Ok, now the requirements are a lot clearer, for the mentioned samples, the following pattern might work:
(https://psv4\.website\.net/c\d+/u\d+/)[0-9a-z]+/(audios/[0-9a-z]+)/index\.m3u8( \?extra=.*?\.)m3u8 replace with $1$2.mp3$3mp3 (Asuming, there are no other cornercases, or lacking specification - e.g. the duplicated .mp3 in the first example looks strange.) hth, vbr -- <https://forum.pspad.com/read.php?2,71365,71389> PSPad freeware editor https://www.pspad.com