You are viewing limited content. For full access, please sign in.

Question

Question

Remove only first character from file name

asked on May 24, 2018

Hi there,

 

I'm still very new to Workflow and pattern matching and I have been tasked with removing the first character of the filenames of 315 documents within a folder.  

I guess I'm having trouble with figuring out how to split that character out so I can put the remainder of the filename in a token.  The filenames look something like this: xSR_A_G_Park Ave 606.pdf

I just want to get rid of the pesky 'x' at the beginning of the file names.  Can someone help? 

 

Thanks!

1 0

Answer

SELECTED ANSWER
replied on May 24, 2018

If you already have the file names stored in a token and you know that the names are always follow the convention you just mentioned, the regex below should work:

\w(.*)

This is saying: grab everything after the first word character.

 

2 0

Replies

replied on May 24, 2018

Thank you so much. That did the trick!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.