Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(?P<header>.+) \s name= (?P<name>.+) \s timestamp= (?P<timestamp>\d+) \s autosave= (?P<autosave>true|false) \s count= (?P<count>\S+) \s (?:group= (?P<group>.+) \s)? screensize= (?P<screensize>\d+x\d+) \s (?P<data>.+)
"
x

Description

retrieve data of firefox .session files

Submitted by artemisart - 9 years ago