Glob Pattern Tester
LiveGlob Pattern Tester checks which file paths a glob pattern such as src/**/*.js matches.
Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.
Glob Pattern Tester checks which file paths a glob pattern such as src/**/*.js matches.
Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.
Glob Pattern Tester checks which file paths a glob pattern such as src/**/*.js matches. It follows the common glob rules: * and ? stop at a slash, ** crosses folders, [abc] and [!abc] match one character, and dot files are matched like any other file. Rules for .gitignore files differ, so test those in Git itself.
Use {js,ts} to match several endings and ** to match any number of folders.
Type one or more patterns, paste a list of paths, and each path is marked as a match or not, with the pattern that matched. A path matching any pattern counts.
Options let you ignore case, expand braces such as {js,ts} and {1..3}, and show only matches. Copy the matching paths when you are done.
Results were compared with Python 3.13's pathlib full_match on 200 random sets of patterns and 6,000 paths, with and without case folding, plus brace and range expansion, odd characters in square brackets and paths written with ./ and double slashes.
* and ? never match a slash, ** matches any number of folders (a trailing ** needs at least one more name), [!abc] negates and [^abc] does not. There are no backslash escapes, and a pattern is matched against the whole path. .gitignore has extra rules such as matching a bare name at any depth and ! to re-include, so check those in Git.
Yes, here it does, as in Python. Some shells skip them by default.
Use **/*.js.
No. They are checked in your browser.
Glob Pattern Tester checks which file paths a glob pattern such as src/**/*.js matches. It follows the common glob rules: * and ? stop at a slash, ** crosses folders, [abc] and [!abc] match one character, and dot files are matched like any other file. Rules for .gitignore files differ, so test those in Git itself.
One or more glob patterns and a list of file paths.
Your paths stay in your browser and are not uploaded.
Yes, MyToolDock Glob Pattern Tester is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.
More in Developer Tools · Browse all tools