Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular expression for filename in batch eway

Status
Not open for further replies.

cshubhra

Programmer
Nov 26, 2001
10
US
Hi,
I have three sets of files to retrieve from a ftp server. There names are G<mmddyyyy>.csv G<mmddyyyy>.csv and I<mmddyyyy.csv> All the files are in the same folder and I use three eWays to fetch each type of file.

I am not being able to construct the regular expression correctly. Here are the ones which I used to fetch a G type file....

Case I

G????????.CSV

Does not work as H and I files are also fetched by mistake

Case II

G\d\d\d\d\d\d\d\d.CSV

does not match

Case III

G+\d\d\d\d\d\d\d\d.CSV

does not match.

It would be helpful if someone can point me to a link which gives the rules of regexp construction in batch eway in egate, or help me construct my reg exp by pointing out the mistake I am making.

 
Solved this problem myself ...

regular expression i used is

Code:
G+.........CSV

Problem was the regular expression functions in monk and the regular expression for file name has a different syntax ----------------------
-------Shubhra--------
:):):):):):):):):):):)
______________________
______________________















 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top