Glob path matcher

Compare file paths with star and question-mark patterns and inspect matches individually.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Yes. In this subset, **/ also covers no intermediate path. To bound work, ** is allowed at most once in a pattern.

src/**/*.ts matches src/a.ts and src/lib/b.ts but does not match README.md.

* and ? do not cross /; ** can. Limits are 200 pattern characters, 1,000 characters per path and 2,000,000 computation cells overall. Classes, braces, escapes and complex **/ prefixes are rejected.

Frequently asked questions

Can **/ match when there is no intermediate folder?

Yes. In this subset, **/ also covers no intermediate path. To bound work, ** is allowed at most once in a pattern.

Does this implement every shell or Git glob rule?

* and ? do not cross /; ** can. Limits are 200 pattern characters, 1,000 characters per path and 2,000,000 computation cells overall. Classes, braces, escapes and complex **/ prefixes are rejected.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors