Regular Expressions 101

Community Patterns

0

C characters

Python
no description available
Submitted by anonymous - 4 years ago
0

nm-test-main

Python
no description available
Submitted by anonymous - 4 years ago

HDFS Audit Log Parser

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

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