Extracting IDs from log lines
Given log lines like "2026-08-05 09:30 ERROR request_id=7f3a user=ada", the pattern /request_id=(\w+)/g matches each request id and captures the value into group 1. The tester lists both matches with positions and their captured groups, so you can confirm the pattern before using it in a log pipeline.
| Input | Value |
|---|---|
| text | 2026-08-05 09:30 ERROR request_id=7f3a user=ada
2026-08-05 09:31 ERROR request_id=9c21 user=bob |
| pattern | request_id=(\w+) |
| flags | g |
| Result | 2 matches · group 1: 7f3a, 9c21 |