Glob ↔ Regex

Convert glob patterns to regular expressions and test them against paths

^.*[^/]*\.ts$

Matches

Glob Syntax Reference

*Matches any characters except path separator /
**Matches any characters including path separators (zero or more directories)
?Matches any single character except path separator /
[abc]Matches any character listed in the brackets