骆驼路线 xml 多个文件名正则表达式
camel route xml multiple file name regex
我正在尝试从 sftp 服务器中提取名称为“123*.txt”、“987*.txt”的文件。为此,camel 中的路由 xml 配置如下所示。它不处理这两个文件,我什至尝试过 123*.txt、987*.txt。建议我可以在此处使用的正确正则表达式来处理这两个文件。
<?xml ...
<route.....
...
..
<from nullPayload="IGNORE">
<uri>ftp://localhost/</uri>
<options>
<option name="username">uname</option>
<option name="password">pwd</option>
<option name="include">123.*\.txt,987.*\.txt</option>
</options>
</from>
<to>
<uri>file://C:/folder</uri>
</to>
</route>
尝试使用以下模式:
^(?:123|987)[A-Za-z0-9-_\s\.]*\.txt$
我正在尝试从 sftp 服务器中提取名称为“123*.txt”、“987*.txt”的文件。为此,camel 中的路由 xml 配置如下所示。它不处理这两个文件,我什至尝试过 123*.txt、987*.txt。建议我可以在此处使用的正确正则表达式来处理这两个文件。
<?xml ...
<route.....
...
..
<from nullPayload="IGNORE">
<uri>ftp://localhost/</uri>
<options>
<option name="username">uname</option>
<option name="password">pwd</option>
<option name="include">123.*\.txt,987.*\.txt</option>
</options>
</from>
<to>
<uri>file://C:/folder</uri>
</to>
</route>
尝试使用以下模式:
^(?:123|987)[A-Za-z0-9-_\s\.]*\.txt$