Need to count the input variable

I need to count the value of the input variable
For example:value=12.34+45.67+78.94
Then I should get 3 as output
Simlarly 12.34±45.67 output should be 2

Hi @sruthesanju

Use this l

Let’s say input string is in input_variable

Now use the below code in assign activitiy

count= System.Text.RegularExpressions.Regex.Matches(input_variable,"[\d.]+").Count.ToString

Where count is string varaible

Hope it helps you

Mark it as solution if it resolves ur query

Regards

Nived N :robot:

Happy automation

2 Likes