PREV INDEX NEXT

Author: Unknown
Subject: regex understanding
Date: Wednesday, 14 Oct 2020, 01:25:29

From my understanding regex in python only returns the first "substring" that matches a given pattern, rather than, for example, creating a list of all words in the input that fit under 1+ capture groups created in the regex pattern. Does this mean we have to iterate through the entire line and run our regex pattern until we reach the end of the line or find an error?
PREV INDEX NEXT