Files
textmate/Applications/TextMate/resources/TextMate Help/glob_string_syntax.md
Allan Odgaard f58a92885d Add titles to all help pages
Note that the documentation is a bit outdated as it hasn’t been touched since the first public alpha — updated documentation will appear when closer to final release, in the meantime interested parties should watch the release notes, wiki, and mailing list.

Closes #822.
2013-02-25 21:07:53 +01:00

767 B

title: Glob String Syntax

Glob String Syntax

\«char»         -- Literal «char»
?               -- Match one character
*               -- Match zero or more characters¹
**              -- Match zero or more path components
{«a»,«b»,«c»}   -- Match «a» or «b» or «c»
[«a»«b»«c»]     -- Match an «a», «b» or «c» character
[«a»-«b»]       -- Match one character in the range «a»-«b»
[^«a»-«b»]      -- Match one character not in the range «a»-«b»

Braces can be nested and contain other glob characters. Example:

{*.{cc,mm,h},target,Makefile,.tm_properties}

Will match these files:

source.cc
source.mm
source.h
target
Makefile
.tm_properties

¹ The asterisk will not match slashes nor a leading period.