I have a piece of text and I\'ve got to parse usernames and hashes out of it. Right now I\'m doing it with two regular expressions. Could I do it with just one multiline regular
Try this:
re.findall(r'Hello, (?P[^.]+)\..+?hash: (?P[^.]+)', test_str, re.S)