TestProject Forum

Removing period from the end of a string

I am using the ‘Remove non numeric characters’ action to retrieve a document number from a log message that read something like this: “Document 000123 has been created.” (note the period at the end of the sentence).

When I run the action, the string shortened to ‘000123.’. I need to remove the training period from the document number in order to use the number in a later part of my test script. How would I go about doing this?


Hi @keith.sheehan

You can remove the period using the action “Replace substrings” , like this: