Why second results false? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why second results false?

I have tried regex exercise for youtube link. It gives true for 1st pattern. But for 2nd it gives false. Why? Does the regex have any mistake? https://code.sololearn.com/cGmf9FG3W0wG/?ref=app

29th Dec 2021, 7:04 AM
Jawahirullah
Jawahirullah - avatar
2 Answers
+ 5
The symbol "?" seems to be the problem.
29th Dec 2021, 7:14 AM
CGM
CGM - avatar
+ 2
Thank u
29th Dec 2021, 7:16 AM
Jawahirullah
Jawahirullah - avatar