Regular Expressions 101

Library entries

Log Data Parsing

Vote

0

Regular Expression
golang

`
^(# Time: (\d+)\s([^ \n]+)\n)?# User@Host: (\w+\[\w+\])\s@\s\[([\d|\.]+)\]\sId: (\d+)\n# Query_time: (\d+\.\d+) Lock_time: (\d+\.\d+) Rows_sent: (\d+) Rows_examined: (\d+)\n((.|\n)*)$
`
g

Description

Loading markdown...
Submitted by anonymous - 6 months ago