Regular Expressions 101

Library entries

Nextcloud client log line parse

Vote

0

Regular Expression
pcre2

/
^(?<date>\d{4}-\d{2}-\d{2})\s*(?<time>\d{2}:\d{2}:\d{2}:\d{3})\s*\[\s*(?<level>\w*)\s*(?<module>.*?)\s*\]\s*(?<message>.*)$
/
gmi

Description

Loading markdown...
Submitted by anonymous - 25 days ago