Forum Discussion
nsingam
6 years agoEmployee
@graham-onpoint
Given that if you do not want to use the Regex and to achieve this you may need to configure two parameters.
1.The match string without file extension which you are using FILE_NAME_MATCH(in this case test)
2.File extension as FILE_EXT(in this case .csv)
With those two parameters defined you can use the expression in the filter like this.
$filename.match(_FILE_NAME_MATCH) != null && $filename.toLowerCase().endsWith(_FILE_EXT)
Hope this is helpful