in reply to Finding length of line if have any position of any char inside line

My negligible contribution to this discussion is to point out that you don't mention if the \n should be included in the length count.
I want length of this line
is 26 characters without the newline.