Apr-02-2019, 11:21 AM
(Apr-02-2019, 09:28 AM)wereak Wrote:re.findall("(r'([a-z0-9]+(\.[a-z0-9]+)*@[a-z]+(\.[a-z]+)+)')",line)
Is this regex delivers expected results? My casual observation with regex101.com matches
"r'[email protected]'"
. re.compile("(r'([a-z0-9]+(\.[a-z0-9]+)*@[a-z]+(\.[a-z]+)+)')", re.DEBUG) SUBPATTERN 1 0 0 LITERAL 114 # r LITERAL 39 # ' SUBPATTERN 2 0 0 MAX_REPEAT 1 MAXREPEAT IN RANGE (97, 122) RANGE (48, 57) MAX_REPEAT 0 MAXREPEAT SUBPATTERN 3 0 0 LITERAL 46 MAX_REPEAT 1 MAXREPEAT IN RANGE (97, 122) RANGE (48, 57) /../
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.