Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
^(?P<type>.)(?P<permission>.+?)\s+(?P<replication>\d+|-)\s+(?P<user>\w*)\s+(?P<group>\w*)\s+(?P<size>\d+)\s+(?P<time>\d{4}-\d{2}-\d{2}\s\d{2}:\d{2})\s+(?P<path>.+)$
"
mg

Description

no description available

Submitted by Vance Wei - 9 years ago