Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(\S+) (\S+) (\S+) \[([\w:/]+\s[+\-]\d{4})\] "(\S+) (\S+)\s*(\S*)("| ") (\d{3}) (\S+)
"

Description

Used in lab2 spark for pyspark access log pattern recognition

Submitted by anonymous - 9 years ago