【发布时间】:2018-10-26 10:25:52
【问题描述】:
是否可以使用正则表达式找到我要查找的文件夹是动态的文件?
路径:
Folder/Folder/file
文件夹是按年月号命名的。
例如:
2018/10/File
2018/09/File
2018/01/File
2017/10/File
我想要的是找到有条件的文件:
[CurrentYear]/[CurrentMonth]/File
[CurrentYear]/[LastMonth]/File
这个东西是在 pentaho 中使用 Get File Name/Text File Input Step 运行的。
或者有其他方法吗?
假设当前日期是 2018 年 10 月。
【问题讨论】:
-
所以如果我理解正确的话,你想从这样的路径中获取文件名吗?
-
@Mark 是的,尝试使用正则表达式等学习 Pentaho。
标签: regex kettle pentaho-data-integration pdi