Display Year from Filename in Column

How can I display the year in a column taken from a filename?

One of the Regular Expressions column scripts will let you do that.

e.g. This one has a nice UI for setting up the columns:

This one has a long tutorial written about it:

A third option (may also have a config UI; I'm not sure):

Thanks, Leo. I tried all three options, but can't get what appears to be something simple working. I have the scripts loaded, see the menu options, but can't see how to then display the year column with the years displayed from file names.

You'll need to configure the scripts to add columns that extract the dates based on the format of your filenames and dates.

If you give us some examples of what the filenames look like, and what you want the column to show for each example, we might be able to give more detail.

It's quite simple, really: my files are titled using the format Example (2020). I would just like to be able to display each of the years of these shown in a separate Year column. Thanks.

Quick tip:

1 Like

I can't get that screenshot window to load. What am I missing?

That's from the first link Leo posted. Just install the script and the button and you'll get the configuration dialog.

I've added some details to the root post in that thread to make it a bit easier.

1 Like

Thanks. I got there in the end!

1 Like