Download files without X in front of filename

Post variable and regex related tips, questions.

Download files without X in front of filename

Postby Tech Support » Tue Mar 15, 2016 1:16 pm

We would like to download all files that do not have “X” in front of the filename

After file is down loaded then add “X”

Please advise
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am

Use regular expression ^

Postby Tech Support » Tue Mar 15, 2016 1:17 pm

For the filename field use:
REGEXF=^(?!X)\w+

^ matches first character
(?!X) exclude X (as first character)
\w+ is one or more characters

For the Append to filename field use:
P1::X
Tech Support
Site Admin
 
Posts: 1276
Joined: Thu May 25, 2006 11:12 am


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 7 guests

cron