I've been saying this in a better way by considering my required output, you will understand it more clearly. In that long string values 1st string value has only single +'s so count the no. Of single pluses and put the count as 2 in count1 variable. In the 2nd long string value has double ++'s so count the no.of double pulses and put the count as 4 in count1 variable. Please please try to understand my concept with my Required Output. Here slash / becomes the end of one or double pluses and at the end of the string value if the string doesn't end with slash / no worries, you can consider the + or ++. Slash / is for our understanding.
... View more