+ 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
1 Antwort
+ 3
(--) is two hyphen
? is optional
so the RegEx is either two hyphen or nothing between ice and cream