Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import codecs
import re
import mmap
with'a.txt', 'r+', 'utf-8') as f:
data = mmap.mmap(f.fileno(), 0)
print(re.findall(b'AccountType\=(.*)', data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.