Tools Home|100% Client-Side

Glob Pattern Tester & Wildcard Path Matcher

Test and debug glob wildcard patterns (*, **, ?, {}, !) in real-time against candidate file paths for .gitignore, Webpack, Vite, and shell scripts.

Presets:
Candidate File Paths (One per line)11 paths
Real-time Matching Evaluation
src/index.ts NO MATCH
src/app/layout.tsx NO MATCH
src/app/tools/csv-to-sql/page.tsx NO MATCH
src/components/Button.tsx NO MATCH
src/styles/globals.css NO MATCH
src/assets/logo.png NO MATCH
.env.production NO MATCH
.gitignore NO MATCH
package.json NO MATCH
node_modules/react/index.js NO MATCH
dist/bundle.js NO MATCH
Matched Paths0
Unmatched Paths11
Total Tested11
Hit Ratio0%

Private Client-Side Evaluation

Your confidential project file paths and directory structures are tested locally without touching any external API or logging service.

Full Glob Spec Compliance

Supports recursive globstar `**`, single asterisks, brace expansions, negation `!`, character sets, and dotfile rules.

Sub-Millisecond Regex Transpile

Glob patterns are compiled instantly into optimized native RegExp objects for high-throughput batch filtering on thousands of paths.

Technical Reference & Architecture Guide

Glob Pattern Matching Technical Guide — Reference Guide

Complete guide to testing, understanding, and debugging file path globbing patterns across Node.js, Webpack, Vite, .gitignore, and Bash shells.

Key Parameters & Controls

patternstring

Wildcard glob expression to evaluate (e.g. src/**/*.{ts,tsx}).

pathsstring[]

List of candidate file path strings tested against the pattern.

dotboolean

Allow wildcards to match hidden dotfiles (files starting with .).

caseSensitiveboolean

Enforce exact case matching between pattern and paths.

Pro Tips & Best Practices

Use double-asterisk ** for recursive directory traversal across any depth of subfolders.

Prefix patterns with an exclamation mark (!) to declare exclusion rules in .gitignore and bundler configs.

Enclose multiple file extensions in braces without spaces: *.{js,jsx,ts,tsx}.

Common Gotchas & Troubleshooting

Use globstar ** instead of * to traverse multiple directory tiers.

Enable dotfile matching, as standard globs treat leading periods as explicit characters.

Frequently Asked Questions

Does this tester support Bash extglob syntax?▼

Yes, standard extended patterns like +(pattern), ?(pattern), and !(pattern) are fully supported.

Is path matching executed in the browser?▼

Yes, regex compilation and path traversal testing run entirely client-side.

How does ** behave differently from *?▼

A single * matches characters within a single directory level, while ** spans across subdirectories.

Can I use this for .gitignore testing?▼

Yes, it follows standard gitignore globbing semantics including slash anchoring and negation.

Related Tools & Utilities

All Tools →