+ 1

Can any one explain me the output of the above code?

Output of the above code is Match 2 and Match 4 Can anybody explain me why it is not showing output as Match 1 ? https://code.sololearn.com/cyzfo090YCH1/?ref=app

18th Nov 2019, 12:58 PM
Ramesh Vishvas Bandgar
Ramesh Vishvas Bandgar - avatar
1 Resposta
+ 3
(--) is two hyphen ? is optional so the RegEx is either two hyphen or nothing between ice and cream
18th Nov 2019, 1:06 PM
Gordon
Gordon - avatar