There's one thing you missed in the calculations though. It only counts for the word Oni when there's a space before and after it. However, as you might see, it's not always the case due to punctuation.
Simply doing Ctrl-F and adding the 3 results together when you enable case-sensitive results would give you 146.
However, since it adds the oni from "monies plox", you need to subtract 2 to it.
Result : You get the exact count, 144 onis. Or, if you prefer, a gross of onis. (It would sound better in french, believe me.)
As a side note, those in the image were not counted. Obviously. (There's 29 more in the picture, if you wonder.)
Edit : Looks like I didn't taken into consideration AP's signature. Containing in total 33 "monies" in the first page. The good total would be 31+42+36 (+29 for the picture and +2 for Post #4 if it counts.) for a new total of 109-111 for the text and 138-140 Onis for everything.
There's one thing you missed in the calculations though. It only counts for the word Oni when there's a space before and after it. However, as you might see, it's not always the case due to punctuation.
Simply doing Ctrl-F and adding the 3 results together when you enable case-sensitive results would give you 146.
However, since it adds the oni from "monies plox", you need to subtract 2 to it.
Result : You get the exact count, 144 onis. Or, if you prefer, a gross of onis. (It would sound better in french, believe me.)
As a side note, those in the image were not counted. Obviously. (There's 29 more in the picture, if you wonder.)
There's one thing you missed in the calculations though. It only counts for the word Oni when there's a space before and after it. However, as you might see, it's not always the case due to punctuation.
Simply doing Ctrl-F and adding the 3 results together when you enable case-sensitive results would give you 146.
However, since it adds the oni from "monies plox", you need to subtract 2 to it.
Result : You get the exact count, 144 onis. Or, if you prefer, a gross of onis. (It would sound better in french, believe me.)
As a side note, those in the image were not counted. Obviously. (There's 29 more in the picture, if you wonder.)
Edit : Looks like I didn't taken into consideration AP's signature. Containing in total 33 "monies" in the first page. The good total would be 31+42+36 (+29 for the picture and +2 for Post #4 if it counts.) for a new total of 109-111 for the text and 138-140 Onis for everything.
Cool, thanks for pointing out. Btw, I used the word boundary character "\b" in the regex so that oni in "monies" wouldn't be counted. I just realized that the error in my calculation came from the use of .textContent instead of innerHTML; using the former is easier since parsing is not needed, but the input data could be somewhat erroneous.