How to use RegEx for file matching
mainThe match and notMatch options use Regular Expressions against the absolute file path.
- Avoid
^: Since the pattern matches against the absolute path, starting with^will likely fail unless you provide the full absolute path. Use"match": "somefile\.txt$"instead of"match": "^somefile\.txt$". - JSON Escaping: Because settings are in JSON, backslashes must be double-escaped. On Windows, a path like
C:\folderrequires"some\\folder\\.*"in your config.