fork download
  1. s = "[2019-07-29 09:48:11,928] @hr.com [2] [AM] WARN"
  2. puts s[/\[(\d+)\]/, 1]
Success #stdin #stdout 0s 6408KB
stdin
Standard input is empty
stdout
2