Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex mule中sftp连接器的自定义文件过滤器_Regex_Mule_Mule El - Fatal编程技术网

Regex mule中sftp连接器的自定义文件过滤器

Regex mule中sftp连接器的自定义文件过滤器,regex,mule,mule-el,Regex,Mule,Mule El,我正在尝试使用mule的sftp入站连接器 但是我需要只读取中间有特定命名约定的日期(DDMyYyyy)的文件。 文件名格式:\ uu.zip 示例:test1\u 001\u 10072018\u data.zip、test2\u 011\u 10072018\u data.zip 我也试过regex。 但对于regex,它使用的是硬编码日期 请帮我动态传递日期 实际代码: <sftp:inbound-endpoint ........> <file:filename

我正在尝试使用mule的sftp入站连接器

<>但是我需要只读取中间有特定命名约定的日期(DDMyYyyy)的文件。 文件名格式:\ uu.zip 示例:test1\u 001\u 10072018\u data.zip、test2\u 011\u 10072018\u data.zip

我也试过regex。 但对于regex,它使用的是硬编码日期

请帮我动态传递日期

实际代码:

<sftp:inbound-endpoint ........>
    <file:filename-regex-filter pattern="\w+_\w+_(10072018)_\w+_\w+.zip" caseSensitive="true"/>


我想要一些动态值来代替这个日期的“10072018”

你能试试这个模式吗

#[function:dateStamp:ddMMyyyy]
写的例子..你可以做同样的阅读

<file:outbound-endpoint path="${fileDir}" outputPattern="test_#[function:dateStamp:ddMMyyyy].zip" connector-ref="File" responseTimeout="10000" doc:name="File"/>