I want to read the spaces between the characters

Hi,

I want to read spaces between characters.
Ex.- J A Y E S H : In this case I want to read the spaces in between J A Y E S H.

Please give me a suggestions.
@ClaytonM @palindrome

Hi.

What do you mean… do you want the number of spaces in the string?

Yes, I want to know the same. @ClaytonM

I did this using Regex.Matches().Count and it returned 5
image

System.Text.RegularExpressions.Regex.Matches(variable.Trim,"\s").Count

2 Likes

Great…
It’s worked for me.
Thanks @ClaytonM

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.