Regex Pack: Searching Code
A 1-page snippet pack for finding things in source code: 10 short entries with copy-ready code.
ForDevelopers
// TODO and FIXME comments
const pattern = /\/\/\s*(?:TODO|FIXME|HACK)\b.*/;
pattern.test("// TODO: handle errors"); // true
// console calls
const pattern = /\bconsole\.(?:log|debug|info|warn|error)\(/;
pattern.test("console.log(x)"); // true
// Import statements
const pattern = /^import\s.+?from\s+['"]([^'"]+)['"]/m;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-code-search.pdfPDF · 19 KB
- regex-pack-code-search.mdMarkdown · 2 KB
- regex-pack-code-search.jsJS · 1 KB
- LICENSE.txtadded to every download
About this item
A compact, printable snippet pack for finding things in source code. 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.
- Editor
- Regex
- Refactoring
- Code search
- Snippets
Reviews
No reviews yet.