I would like to count the number of characters between opening and closing ‘<‘ and ‘>’ for an entire file (e.g. <tag>bla<tag> == 6). I could always write a quick algo to do it, but I am curious to know if there is another way. Maybe Regular expression?
Thanks
You could with regex do it like this:
This also counts ending tags correctly if you happen to have those aswell.