0

I got an error in my code and I don't know wkere is it ?

I've tried to solve YouTube link finder challenge but I always got an only one test failed and it's hidden here is my code https://code.sololearn.com/crKWUA24om8y/?ref=app Could you help me?

1st May 2020, 2:07 PM
Qussai
Qussai - avatar
2 Answers
+ 7
Your pattern is quite not universal, try this pattern '.{1,11}
#x27; Also change the else statement as follows: else: new_link=re.search(pattern1,link) print(new_link.group())
1st May 2020, 2:29 PM
Valmob101
Valmob101 - avatar
+ 1
Valmob101 Got it! Thanks a lot
1st May 2020, 2:54 PM
Qussai
Qussai - avatar