[ https://issues.apache.org/jira/browse/NIFI-7809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Opher Shachar updated NIFI-7809: -------------------------------- Description: The documentation for "File Filter Regex" property of ListSFTP processor reads: {quote}Provides a Java Regular Expression for filtering Filenames; if a filter is supplied, only files whose names match that Regular Expression will be fetched {quote} But it should be made clear that the Regex *_needs_* to match the _*whole*_ filename. e.g. to filter files ending in ".txt.gz" the following will not work: {code:java} \.txt\.gz$ {code} You'd need to specify: {code:java} .*\.txt\.gz {code} or equally: {code:java} .*\.txt\.gz$ {code} was: The documentation for "File Filter Regex" property of ListSFTP processor reads: {quote}Provides a Java Regular Expression for filtering Filenames; if a filter is supplied, only files whose names match that Regular Expression will be fetched {quote} But it should be made clear that the Regex *_needs_* to match the whole filename. e.g. to filter files ending in ".txt.gz" the following will not work: {code} \.txt\.gz$ {code} You'd need to specify: {code} .*\.txt\.gz {code} or equally: {code} .*\.txt\.gz$ {code} > ListSFTP File Filter Regex documentation needs to be clearer > ------------------------------------------------------------ > > Key: NIFI-7809 > URL: https://issues.apache.org/jira/browse/NIFI-7809 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions > Affects Versions: 1.11.4 > Reporter: Opher Shachar > Priority: Major > Labels: documentaion, sftp > > The documentation for "File Filter Regex" property of ListSFTP processor > reads: > {quote}Provides a Java Regular Expression for filtering Filenames; if a > filter is supplied, only files whose names match that Regular Expression will > be fetched > {quote} > But it should be made clear that the Regex *_needs_* to match the _*whole*_ > filename. e.g. to filter files ending in ".txt.gz" the following will not > work: > {code:java} > \.txt\.gz$ > {code} > You'd need to specify: > {code:java} > .*\.txt\.gz > {code} > or equally: > {code:java} > .*\.txt\.gz$ > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)