Sometimes it's needed to count some characters on a string on a Nintex Workflow
This sample shows how to calculate it with 3 actions.
The used actions are:
I set a variable named myString with the value 123-1234-12345
Then I create the following variables
Firstly I count the total characters on my string using the action named "Convert Value"
Then I count the characters deleting the character you want to count ("-" (hyphen) in this case) , from the string
Then I use the action named "Math operation"
So you get the result on the variable named "myResult"