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.
In reply to Re: Char Count
by jwkrahn
in thread Char Count
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |