“How to match against “1 Mar 21 for any month?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

I want to match against patterns like

Code: Select all
1[space][Uppercase-letter][lowercase-letter][lowercase-letter][space]21

and then use the [Uppercase-letter][lowercase-letter][lowercase-letter] part in a Rename Filename action.

For example a content of

Code: Select all
...
1 Mar 21
...

should match and extract the month "Mar" for the Rename action.

To make it even safer I would like to match aginst [newline]1[space][Uppercase-letter][lowercase-letter][lowercase-letter][space]21[newline] - is this possible, too?

I read through the help about "Using Match Patterns in Conditions" but couldn't work it out from there.

Thanks for pointers!
halloleo
 
Posts: 44
Joined: Thu Apr 27, 2017 10:10 pm

Use a custom attribute for the part you want to re-use later. It will then be available for you to drop in when renaming.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks, will try it out.
halloleo
 
Posts: 44
Joined: Thu Apr 27, 2017 10:10 pm


Return to Support

cron