Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Need Some RegEx For This Type of URL

Ok so I need a RegEx that can get the url below and then I will be able to print the url to the console, if you can do it please make a RegEx that gets the url containing 720P thanks in advance

Here is the URL: https://websitehere/videos/201904/11/217790671/720P_4000K_217790671.mp4?validfrom=1624025401&validto=1624032601&rate=500k&burst=1000k&ipa=31.158.240.125&hash=NYdizwhVXPl2hM3uaw4uQKkJqzo%3D
So what exactly are you trying to capture? That whole url, or just the 720P part?
(Jun 18, 2021 08:52 AM)AeroBlue Wrote:  So what exactly are you trying to capture? That whole url, or just the 720P part?

the whole part but since in the source there are 3 URLS I need to get the one with 720P
(Jun 18, 2021 08:56 AM)zogra Wrote:  the whole part but since in the source there are 3 URLS I need to get the one with 720P

This will vary slightly by language but hopefully this works:

Code
https:\/\/.+?\/.+?\/720P.+?%3D
(Jun 18, 2021 09:02 AM)AeroBlue Wrote:  This will vary slightly by language but hopefully this works:

Code
https:\/\/.+?\/.+?\/720P.+?%3D

Thanks dude


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by maryousJul 24, 2022 03:35 PM 0 162 Jul 24, 2022 03:35 PM
Last Post: maryous
[C#] by Bruce BannerOct 8, 2019 03:38 PM 5 436 Oct 8, 2019 03:38 PM
Last Post: Bruce Banner
[C] by F.A.S.TJul 24, 2018 03:24 PM 7 287 Jul 24, 2018 03:24 PM
Last Post: aeiro