Glob Tester
Test glob patterns and .gitignore rules against a list of file paths and see which ones match, which are ignored and which rule decided it.
Runs entirely in your browser. Nothing you put in here gets uploaded.
Rules and paths
One pattern per line. A path matches when any pattern matches it and no ! pattern does. Lines starting with # are comments.
One path per line, relative to the project root. End a line with / to mark a directory. Backslashes count as separators.
Results
- Matching
- 4
- Not matching
- 12
- Matches:
README.mdMatched by L2*.md - No match:
.envNo pattern matches - No match:
.github/workflows/ci.ymlNo pattern matches - No match:
package.jsonNo pattern matches - Matches:
src/index.tsMatched by L1src/**/*.{ts,tsx} - Matches:
src/app.tsxMatched by L1src/**/*.{ts,tsx} - Matches:
src/utils/format.tsMatched by L1src/**/*.{ts,tsx} - Excluded:
src/utils/format.test.tsExcluded by L3!**/*.test.ts - No match:
src/styles/main.cssNo pattern matches - No match:
docs/guide.mdNo pattern matches - No match:
build/main.jsNo pattern matches - No match:
build/main.js.mapNo pattern matches - No match:
logs/debug.logNo pattern matches - No match:
logs/keep.logNo pattern matches - No match:
node_modules/react/index.jsNo pattern matches - No match:
coverage/lcov.infoNo pattern matches
Per pattern
How many paths each pattern matches, and how many it decided. The first matching pattern gets the credit, and a matching ! pattern always wins.
| Line | Pattern | Matches | Decides |
|---|---|---|---|
| 1 | src/**/*.{ts,tsx} | 4 | 3 |
| 2 | *.md | 1 | 1 |
| 3 | !**/*.test.ts | 1 | 1 |
Glob syntax
*any characters inside one path segment**any number of directories, including none?exactly one character[abc] [a-z]one character from the set or range{ts,tsx}either alternative{1..3}a numeric range, 1, 2 or 3!patternleave out whatever the pattern matches+(a|b) !(a)extglobs: one or more of, anything except\*a literal star, escape any special characterNext steps
Keep going. These tools open with your result loaded in.
Convert text into every case at once: title case in the APA, AP, Chicago, MLA, Bluebook, AMA and NYT styles, sentence case, upper, lower, camelCase, snake_case, kebab-case and more.
Count words, characters, sentences, paragraphs, lines and more as you type, with estimated reading and speaking time.
Remove duplicate lines from a list or text, keeping the first occurrence. Optionally ignore case and whitespace, or drop blank lines too.
Replace text in two modes: plain find and replace all, or regular expressions with flag controls and capture group references like $1.
Paste a UUID to see what it carries: version, variant, and for time-based versions the exact timestamp, clock sequence and node. Also shows the raw bytes, the 128-bit integer and the URN form.
Decode Base64 to text or encode text to Base64. Paste into the top box, read the result below, and flip the direction with one click. Handles Unicode correctly, reads URL-safe Base64, and shows binary payloads as a hex dump you can download.
Convert numbers between binary, octal, decimal, hexadecimal and any base up to 36. Type into any field and the others update as you go. Handles huge integers without losing precision and accepts 0x, 0b and 0o prefixes.
Convert between scientific notation and full numbers as you type. Reads 1.23e5, 1.23 × 10^5 and plain numbers, shows the value written out, in normalized scientific notation and in engineering notation, and can round to any number of significant digits.