Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<date>\d{4}-\d{2}-\d{2}) (?<time>\d{2}:\d{2}:\d{2}) (?<attr>[.AD]+)\s*(?<size>\d+)\s*(?<compressed>\d+)?\s*(?<name>\S+)
/
gm

Description

7z list

Submitted by anonymous - a year ago (Last modified 9 months ago)