Regular Expressions 101

Community Patterns

0

时间

Java 8
时间
Submitted by 旧信 - a year ago
0

分组引用

Python
分组引用
Submitted by anonymous - a year ago
0

Phone number

Python
Phone number
Submitted by anonymous - a year ago
0

Author names

Python
Matches author names
Submitted by anonymous - a year ago
0

FullName_regex

Java 8
2135
Submitted by anonymous - a year ago
0

TRye bracktres

Python
gfhtrgh
Submitted by anonymous - a year ago
0

Out of

Python
Out of
Submitted by anonymous - a year ago
0

singleTime ztm

Python
ss
Submitted by pochwix2 - a year 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