Mar-23-2019, 04:31 PM
I would use a non-greedy regex:
re.findall('\"GET .+?\"', entry)Regexes by default will get as much as possible, returning the largest possible match (they're greedy). The ? makes things like + and * stop at the first possible match.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures