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?
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?
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
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...