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

Question

Question

Using part of a field entry in folder path

asked on December 8, 2014

We would like to use the first three characters in an entry as the last subfolder the document goes to. The field named Book-Page has "00805" and the document needs to go to ...\008. How do we grab just the first three?

I know I have asked this before, but on the old forum.

1 0

Replies

replied on December 8, 2014

Michael,

The easiest way is to make a pattern matching process that grabs just those three characters, and then use the new pattern matching token in the store path. If it is always three digits, you can get away with "\d{3}" as your pattern matching code after you remove the quotes..  Then set up your storage folders like normal, but at the end add the new Pattern Matching token you just made to the end. If using a field as an input, you will need to put the Pattern Matching part into the Post Processing section of Quickfields.

1 0
replied on December 9, 2014

You can use the token editor to apply a regular expression to filter the token value.

Once you add the token (something like %(Book-Page)), right click on the token and open the token editor.  Put a check to apply a regular expression and try an expression something like (\S\S\S).

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

Sign in to reply to this post.