AZ Tools

Glob Pattern Tester

Developer

Type a glob pattern and a list of file paths, and see which paths match. Supports `*` (within a segment), `**` (across segments), `?`, character classes `[a-z]` / `[!...]`, and brace alternation `{a,b}`. Everything runs locally in your browser — nothing is uploaded.

ResultsMatched: 2 / 5
  • src/index.tsmatch
  • src/lib/util.tsmatch
  • src/index.jsno match
  • README.mdno match
  • test/spec.tsno match

How to use

  1. Enter a glob pattern such as src/**/*.ts.
  2. Paste one file path per line into the paths box.
  3. Each path is marked as a match or no match, with a count summary.

Frequently asked questions

What is the difference between * and **?
A single * matches any characters within one path segment (it stops at /). A double ** matches across segments, including slashes, so src/**/*.ts also matches src/a.ts.
Are brace patterns supported?
Yes. {a,b,c} expands to alternatives, so img.{png,jpg} matches img.png and img.jpg. Nested and multiple braces are supported.
Is matching case-sensitive?
Yes. Patterns are matched case-sensitively against the full path, anchored at both ends.
Is my data sent anywhere?
No. Matching happens entirely in your browser; nothing is uploaded.

Related tools