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
name_hash_pair = re.findall('Hello, ([^.]+).*?hash: ([^.]+)', test_str, re.DOTALL) #gives [('UserName', 'fdaf9399jef9qw0j'), ('UserName2', 'gtwnhton340gjr2g')]