Regular Expressions 101

Community Patterns

1

instagram url

Python
gets the url instagram
Submitted by samuel06santos - 4 months ago
1

Kafka loki parser

Golang
Kafka loki parser
Submitted by anonymous - 4 months ago
1

Extract tag name and its content

Python
Lrc file
Submitted by Cricar - 4 months ago
1

Match each tag

Python
Match each tag in a lrc file
Submitted by Cricar - 4 months ago

LNAV Format for Salt Log File

1

Regular Expression
Python

r"
(?:(?P<timestamp>\d{4}-\d{2}-\d{2}[\s\t]+\d{2}\:\d{2}\:\d{2}\,\d{3})\s*(?P<name>\[[\w\.]+[\s]*\:\d+[\s]*\])\s*(?P<level>\[[A-Z]+[\s]*\])\s*(?P<process_id>\[\d+\])\s*(?P<body>.*$))
"

Description

Loading markdown...
Submitted by anonymous - 4 months ago
(Last modified 4 months ago)