🫧Glob Pattern Match Tester

Pattern plus paths to matches and the regex used

TokenMeaningImplementation differences
*Zero or more characters except a slashThe same in almost every implementation
?Exactly one character except a slashThe same in almost every implementation
[abc]One character from the set, [!abc] negates itGo (path.Match) accepts [^abc] but not [!abc]
**Matches across directory boundariesGo filepath.Match has no **, and bash needs globstar enabled

You Might Also Need

See exactly which paths a pattern picks up

Paste a glob pattern and a list of paths, and the table shows a match or no match for every line together with the regular expression used to decide. A single star means any characters except a slash, a question mark means one character, and a bracket expression means one character from a set. Matching runs against the whole path from start to end.

The token that behaves differently across tools is the double star. minimatch and the gitignore family let it cross directory boundaries, Go filepath.Match has no such token at all, and bash needs globstar enabled. Dot file handling also varies, so it is a select here. The rules used for the run are printed above the table, as of October 2026.

Brace expansion and extended glob syntax are not supported, and the tool never touches a file system. It only looks at the path strings you paste, so results can differ from your shell or library. Check important paths once more in the tool you actually ship with.

Frequently Asked Questions

Why does the double star behave differently in each tool?

Glob syntax has no single standard. minimatch and the gitignore family treat a double star as crossing directory boundaries, Go filepath.Match has no such token, and bash needs the globstar option turned on.

Why is the regular expression shown?

So the decision is not hidden. Reading the converted expression tells you where a slash was blocked and where a leading dot was excluded, which makes a surprising result easy to explain.

Is brace expansion supported?

No. Brace expansion and extended glob syntax are not handled. The tool reads the star, the question mark, bracket expressions and the double star only, and it compares the strings you paste without touching a file system.