Regular Expressions 101

Community Patterns

Community Library Entry

-1

Regular Expression
PCRE (PHP <7.3)

/
^(?P<timestamp>\d+\/\d+\/\d+\s+\d+:\d+:\d+)\s+\w+
/
gm

Description

timestamp extraction for k8s:kube-system:sealed-secrets-controller logs

Submitted by anonymous - 5 years ago