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

Question

Question

extract a folder name from a path

asked on February 8, 2018

Hi,

I need to extract a folder name after the 5-digit number from a path.  There is always a 5-digit number before the path I want to extract.  The first part of the path always begins with  cnb-fs1\PentaImages-HR-LF\Ready to be Processed\

For example,

I have this path here cnb-fs1\PentaImages-HR-LF\Ready to be Processed\10000\Workers Compensation\10000wc020199.pdf and I need to extract the word "Workers Compensation".

 

Can I get some help please?  I spent half a day looking at this.  :(

Thanks!
Faz

0 0

Replies

replied on February 8, 2018

Hi Vilasinee, 

Where are you trying to extract/capture the folder name?

0 0
replied on February 8, 2018

If you are working in workflow and looking for a regexp, this will work:   \d{5}\\(.+)\\

0 0
replied on February 9, 2018

Is there always just 1 folder level after the 5 digit level?  If not a better expression may be  \\\d{5}\\([^\\]+)

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

Sign in to reply to this post.