Skip to main content
Nintex Community Menu Bar

Regular expression to remove the file extension

  • April 8, 2016
  • 2 replies
  • 65 views

Forum|alt.badge.img+9

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!

2 replies

Forum|alt.badge.img+16
  • April 9, 2016

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


Forum|alt.badge.img+9
  • Author
  • Scholar
  • April 11, 2016

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