re.findall not returning full match?
The problem you have is that if the regex that re.findall tries to match captures groups (i.e. the portions of the regex that are enclosed in parentheses), then it is the groups that are returned, rather than the matched string. One way to solve this issue is to use non-capturing groups (prefixed with ?:). >>> … Read more