+ 1

tips and guide

how to pass case 4 in youtube link finder ..share any tips or guide please.. beginner here

21st Mar 2021, 12:37 PM
Restituto A. Ochea
Restituto A. Ochea - avatar
5 odpowiedzi
+ 1
I think, The link also may contains minus '-' (special character ) there.. I think you got it..
22nd Mar 2021, 9:28 PM
Jayakrishna 🇮🇳
+ 1
Mention what cant you understand there... You can share your tried code to understand where it going wrong if you already tried..
21st Mar 2021, 12:46 PM
Jayakrishna 🇮🇳
+ 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))
21st Mar 2021, 4:46 PM
Restituto A. Ochea
Restituto A. Ochea - avatar
+ 1
thnx bro
24th Mar 2021, 6:35 PM
Restituto A. Ochea
Restituto A. Ochea - avatar
0
heres my code bro
21st Mar 2021, 4:46 PM
Restituto A. Ochea
Restituto A. Ochea - avatar