Regex tester
Write a pattern, pick your flags, and see the matches highlighted in your sample text with every capture group listed underneath. This is the browser's own regular-expression engine, so what matches here matches in your JavaScript.
Pattern
4 matches
Test string
Matches, in place
INFO api-7f4c GET /v1/users/8821 200 in 38ms
WARN api-2b1a cache miss ratio 0.41 over the last minute
ERROR db-0a93 connection reset while writing audit row
INFO api-7f4c POST /v1/orders 201 in 112ms
Matches (4)
- #1 at 0INFO api-7f4c GET /v1/users/8821 200 in 38ms
- level
- INFO
- source
- api-7f4c
- message
- GET /v1/users/8821 200 in 38ms
- #2 at 46WARN api-2b1a cache miss ratio 0.41 over the last minute
- level
- WARN
- source
- api-2b1a
- message
- cache miss ratio 0.41 over the last minute
- #3 at 104ERROR db-0a93 connection reset while writing audit row
- level
- ERROR
- source
- db-0a93
- message
- connection reset while writing audit row
- #4 at 159INFO api-7f4c POST /v1/orders 201 in 112ms
- level
- INFO
- source
- api-7f4c
- message
- POST /v1/orders 201 in 112ms