+ 1
tips and guide
how to pass case 4 in youtube link finder ..share any tips or guide please.. beginner here
5 Réponses
+ 1
I think, The link also may contains minus '-' (special character ) there..
I think you got it..
+ 1
Mention what cant you understand there... You can share your tried code to understand where it going wrong if you already tried..
+ 1
import re
pattern1 = r'(=)([a-zA-Z0-9._/]+)'
pattern2 = r'([//]+)([a-zA-Z0-9._]+)([/]+)([a-zA-Z0-9_.]+)'
url = str(input())
match = re.search(pattern1,url)
match2 = re.search(pattern2,url)
if match:
print(match.group(2))
elif match2:
print(match2.group(4))
+ 1
thnx bro
0
heres my code bro