パターン マッチング リファレンス
Bamboo では、ファイルとディレクトリを照合するための強力な正規表現がサポートされています (Apache Ant のパターン マッチングと同様)。
These expressions use the following wildcards:
| ? | Matches one character (any character except path separators) |
| * | Matches zero or more characters (not including path separators) |
| ** | Matches zero or more path segments. |
Ant globs では、単なるファイル名ではなく、パスの照合が行われることに留意してください。
- パターンの先頭がパスの区切り文字 (つまり / や \) でない場合、そのパターンは
/**/で始まると見なされます。 - パターンの末尾が
/である場合、**が自動的に追加されます。 - A pattern can contain any number of wild cards.
Also see the Ant documentation.
例
| *.txt | Matches /foo.txt and /bar.txt but not /foo.txt or /bar.txt |
| /*.txt | Matches /foo.txt but not /bar/foo.txt |
| dir1/file.txt | Matches /dir1/file.txt, /dir3/dir1/file.txt and /dir3/dir2/dir1/file.txt |
| **/dir1/file.txt | Matches /dir1/file.txt, /dir3/dir1/file.txt and /dir3/dir2/dir1/file.txt |
| /**/dir1/file.txt | Matches /dir1/file.txt, /dir3/dir1/file.txt and /dir3/dir2/dir1/file.txt |
| /dir3/**/dir1/file.txt | Matches /dir3/dir1/file.txt and /dir3/dir2/dir1/file.txt but not /dir3/file.txt,/dir1/file.txt |
| /dir1/** | Matches all files under /dir1/ |
最終更新日 2021 年 6 月 24 日
Powered by Confluence and Scroll Viewport.