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

Question

Question

Edit a Token

asked on March 14, 2014

 

I am attempting to edit the following token :

 

L1 (L plus a digit)

 

I would like that anytime I get this that I get something in that form that it formats it to L001 or if it was L25 to L025.

 

Any thoughts?

Doc1.docx (44.35 KB)
0 0

Answer

SELECTED ANSWER
replied on March 14, 2014 Show version history

The easiest way to do this is with a script but it is doable with built in functionality.

 

Off the top of my head I would do the following:

1) Pattern match the number out.

2) Use Assign token Values to make a new token

3 In Assign Token Values hard code in the L then use token formatting to handle the number

 

http://www.laserfiche.com/support/webhelp/workflow/9.1/en-us/LFWorkflow.htm#cshid=Resources/Tokens%20and%20Regex/Token%20Formatting.htm

0 0

Replies

replied on March 19, 2014 Show version history

More specifically (as per Matt's response and assuming value matches expression ^[A-Z]\d{1,3}$):

 

> Pattern match L1 with ^.(\d)* to Token1

> Pattern match 000%(Token1) with (\d{3})$ to Token2

> Concatenate first character L and %(Token2) and you're done

 

Hope that helps...

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

Sign in to reply to this post.