in reply to Char Count

You are using the /m option but you are not using either of the ^ or $ anchors.   It looks like you should be using the /s option so that . will match a newline as well as other characters.