cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Regular expression to remove the file extension

Jump to solution

I have a simple workflow to rename the file and populate the Title field. When I am using the Name column when creating the Title it also adds the file extension. How can I get rid of it? Can you please provide a regular expression that could do it?  For example:

Convert This is some sample name.pdf TO This is some sample name

Convert MyFileName.040616.final.xlsx TO MyFileName.040616.final

Convert This is a test.doc.pdf TO This is a test.doc

Thanks!

Labels: (1)
Tags (1)
Reply
2 Replies
Workflow Hero

Re: Regular expression to remove the file extension

Jump to solution

Take a look at this >>> How to delete file extension - Office365 Version

This is a sample for Office365 , anyway you have similar actions on the on-premise version

Reply
Workflow Hero

Re: Regular expression to remove the file extension

Jump to solution

With a small modification (Get Item looks a little different on prem) it did the trick. Thanks!

Reply