Regular Expressions 101

Library entries

HDFS Audit Log Parser

Vote

1

Regular Expression
python

"
^(?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

Loading markdown...
Submitted by Vance Wei - 5 years ago