According the IS Administrator’s guide, the file polling port supports pattern matching characters but not regex. So there is not a way to specify a filename pattern to match the 2 filename patterns that you want other than CSV_.
You’re correct about this. That pattern will also match file names like: CS_2011.txv, CS_2010.cxt, etc.
After doing some experiments, the pattern matching in file polling is not regex at all. As far I tried, the operators that I found working are:
= Matches any number of characters
? = Matches any single character
= Match any character within the brackets
The operator “.”, “(”, “)”, and “|” don’t work like in regex. It’s regarded as plain character. I don’t know if there is other possible way to define logical OR of words (“txt|csv”), too bad the documentation doesn’t provide any detail information about the pattern matching operators.
So for now, to accurately match pattern CS_.txt and CS_.csv, I guess I have to create two file polling or create one file polling with the service doing some filtering for the filename. But for the later, there is a problem, once a file has been polled to the service, the file cannot return to monitoring directory, it will either go to completion directory (on exit flow with success), or to error directory (on exit with failure or if there is error/exception throwed), or to working directory (if service is stuck running, never return).