0

about the question : "What would be the result of len(match.groups()) of a match of (a)(b(?:c)(d)(?:e))?"

1. explanation required, and the answer. kind of stuck here. 2. is this some sort of mathematical standard function or expression? (chapter: regular expressions > groups) please help. thanks and regards...

27th May 2018, 12:56 PM
Driptarup Chatterjee
Driptarup Chatterjee - avatar
1 Odpowiedź
0
In the page 5th of that lesson says:Non-capturing groups have the format (?:...). this means they are not considered by capturing methods. In the problem you dont have to count them. five groups but two are no considered so the answer is 3.
4th Jun 2018, 5:44 AM
Cristian Baeza Jimenez
Cristian Baeza Jimenez - avatar