I have string with HTML images, for example:
string str = "There is some nice <img alt='img1' src='img/img1.png' /> images in this <img alt='img2' src='img/img2.png' /> string. I would like to ask you <img alt='img3' src='img/img3.png' /> how Can I can I get the Lenght of the string?";
I would like to get the lenght of the string without the images and the count of images. So, the result should be:
int strLenght = 111;
int imagesCount= 3;
Can you show me the most effective way, please?
Thanks