+ 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 ответов
+ 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