Page 1 of 1

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

PostPosted: Thu Apr 29, 2021 3:47 am
by halloleo
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!

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

PostPosted: Fri Apr 30, 2021 3:01 pm
by Mr_Noodle
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.

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

PostPosted: Tue May 04, 2021 9:44 pm
by halloleo
Thanks, will try it out.