Regular Expressions 101

Library entries

mysql slow log parse for aws log insights

Vote

0

Regular Expression
javascript

/
# Time:\s(?<timestamp>.*)\n#.*Id:\s(?<id>.*)\n#\sQuery_time:\s(?<duration>[\d.]*)\s.*time:\s(?<lock_time>[\d.]*)\s.*_sent:\s(?<returned>\d*)\s.*_examined:\s(?<searched>\d*)\n(?<sql>[\s\S]*)
/
gm

Description

Loading markdown...
Submitted by Frank Baxter - 6 months ago