Programming
programming
files
patterns
What is Glob Pattern?
Definition
A glob pattern is a simplified pattern matching syntax for file paths. It uses * for any characters, ? for a single character, and [...] for character classes. Unlike regex, globs do not support quantifiers or groups.
Why It Matters
Glob patterns are used in .gitignore files, shell commands (ls *.txt), build tools, and file watchers. They are simpler and more intuitive than regex for file matching tasks.