How to Test Glob Patterns
Glob Matching
When to Test Glob Patterns
Verify .gitignore rules, build include globs, and minimatch-style path filters before committing CI config. Paste candidate file paths one per line to see which match your pattern.
Pattern Syntax
* matches within a path segment, ** matches across segments, and ? matches a single character except path separators (/). Brace expansion ({a,b}), character classes ([abc]), and negation are not supported. Results show the equivalent regular expression for debugging.
Developer Tips
- Test negation rules in gitignore with care — order matters
- CI glob flavors differ slightly — confirm against your runner docs
- Use the Regex Tester tab for full regular expression workflows
Frequently asked questions
Is this identical to gitignore matching?
Similar syntax for *, **, and ?; gitignore adds negation, directory rules, brace expansion, and character classes this tester does not support.
Can I test a single filename?
Yes. Paste one path line or many paths separated by newlines.