This will get me word_cnt = 3, hur do I make sure it only counts exactly “11mr” and not whit a space behind it.
So in this case I would want word_cnt to be 2.
Hi @Sven_son - I’m trying to understand more better, you’re trying to get the 11mr count in your input string. Since there were 3 11mr, it is giving the count as 3. I guess it’s just not because of the whit space. Instead of that if you need the count as 2 then try this with Assign activity
I need to know how many "11mr " there is in the string to be able to know that it should be -1 in the next assing.
Next time Im running the script my_str could be "11mk , 11mk , 11mk, 11mk, 11mk, 11mk ".
So what I want to do is find the exakt count for “11mk” and dont count "11mk " in the counter.
So in the above i would like the result to be 3.