Matching long filenames

Post variable and regex related tips, questions.

Matching long filenames

Postby melvin » Thu Jan 29, 2015 9:25 am

Would you please help me code this for filename in JaSFTP so that nothing is missed during a move… the problem is the file names can be upper/lower case and the extension can be either .ZIP or .zip…
Here are list of examples –where anything after pplea.GDP.winflex such as ABQ/ARG/CBP… are random… follow by date and time. Would you please help me with this? Thanks,
pplea.GDP.winflex.ABQ.20150126.1000.ZIP
PPLEA.GDP.winflex.ARG.20150126.1002.ZIP
pplea.gdp.winflex.CBP.20150126.1002.ZIP
pplea.GDP.winflex.BRC.20150126.1003.zip
pplea.GDP.winflex.anc.20150126.1002.zip
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california

Re: Matching long filenames

Postby melvin » Thu Jan 29, 2015 9:25 am

Try:
REGEXF=[pplea|PPLEA].[adp|ADP].winflex.[a-zA-Z]{1,}.[0-9]{1,}.[0-9]{1,}.[ZIP|zip]
melvin
Site Admin
 
Posts: 979
Joined: Thu May 25, 2006 10:20 am
Location: Santa Barbara, california


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 3 guests

cron