Page 1 of 1

Reading File pattern

Posted: Mon May 18, 2009 6:48 am
by santhoshrao.kuttuva
Hi all

In my source sequential stage properties I have specified Read method as File Pattern.

Whether I can specify the file pathname with any regular expressions.

For e.g., "X:\DS\sample.regular expression"

My actual file name will be like this "sample.20090405"


Please advice with some simple examples.. Thanks in advance..

Posted: Mon May 18, 2009 6:54 am
by chulett
Short answer is "yes" and quickest way to test would be to try it.

Posted: Mon May 18, 2009 7:12 am
by santhoshrao.kuttuva
chulett wrote:Short answer is "yes" and quickest way to test would be to try it. ...

yes, I tried specifying the file name as

"sample.(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])"

but i cant able to view the data... Please help

Posted: Mon May 18, 2009 7:50 am
by chulett
Ack... mea culpa... was thinking 'wildcards' when you said 'regular expressions'. Does that work from your O/S? :?