Skip to content

1 or 2 credits, some free · 1 credit is about $1

pocketshelf

Regex Pack: Log Parsing

A 1-page snippet pack for parsing log files: 10 short entries with copy-ready code.

ForDevelopers

regex-pack-log-parsing.pdfShowing 10 of 39 lines
// IPv4 address
const pattern = /\b(?:(?:25[0-5]|2[0-4]\d|1?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|1?\d?\d)\b/;
pattern.test("192.168.0.1"); // true

// ISO timestamp
const pattern = /\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:?\d{2})?/;
pattern.test("2026-09-29T12:30:45Z"); // true

// Log level
const pattern = /\b(?:DEBUG|INFO|WARN|WARNING|ERROR|FATAL)\b/;

What's inside

Format
PDF, Markdown, JS
Contents
10 patterns
Version
1.0 · Updated 3 Oct 2026
Licence
Commercial What this means
Checked
Checked before it ships
  • regex-pack-log-parsing.pdfPDF · 20 KB
  • regex-pack-log-parsing.mdMarkdown · 2 KB
  • regex-pack-log-parsing.jsJS · 1 KB
  • LICENSE.txtadded to every download

About this item

A compact, printable snippet pack for parsing log files. Each of the 10 entries has a one-line explanation and a small example you can paste into your editor. The PDF uses a two-column A4 layout designed to sit next to your keyboard, and the same content ships as Markdown so you can search it or drop it into your notes, plus a JavaScript module that exports every pattern. Every JavaScript example targets ES2023.

Reviews

No reviews yet.

You might also grab