I have a URL:
https:u002Fu002Fsite.vid.comu002F93836af7-f465-4d2c-9feb-9d8128827d85u002F6njx6dp3gi.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb3VudHJ5IjoiSU4iLCJkZXZpY2VfaWQiOiI1NjYxZTY3Zi0yYWE3LTQ1MjUtOGYwYy01ODkwNGQyMjc3ZmYiLCJleHAiOjE2MTA3MjgzNjEsInBsYXRmb3JtIjoiV0VCIiwidXNlcl9pZCI6MH0.c3Xhi58DnxBhy-_I5yC2XMGSWU3UUkz5YgeVL1buHYc","
And I want to match it using preg_match_all. My regex expression is:
preg_match_all('/(https://site.vid.com/.*",")/', $input_lines, $output_array);
But I am not able to match special character
& u002F
in above code. I tried using (escaping fuction). But it is not matching. I know it maybe a lame question, but if anyone could help me in matching
and u002F
or in escaping
and u002F
in preg_match_all, that would be helpfull.
Question Edit:
I want to use only preg_match_all
because I am trying to extract above URL from a html page.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…