パターン マッチング リファレンス
Bamboo supports a powerful type of regular expression for matching files and directories (as with pattern matching in Apache Ant).
These expressions use the following wild cards:
? | 1 つ以上の文字 (パス区切り記号以外の文字) と一致 |
| 0 個以上の文字と一致 (パス区切り記号を含まない) |
| 0 個以上のパス セグメントと一致 |
Remember that Ant globs match paths, not just simple filenames.
- If the pattern does not start with a path separator i.e. / or \, then the pattern is considered to start with
/**/
. - If the pattern ends with
/
then**
is automatically appended. - パターンにはワイルド カードをいくつでも含めることができます。
Ant ドキュメントも参照してください。
例
*.txt | Matches |
/*.txt | Matches |
dir1/file.txt | Matches |
**/dir1/file.txt | Same as above. |
/**/dir1/file.txt | Same as above. |
/dir3/**/dir1/file.txt | Matches |
/dir1/** | Matches all files under |