Hi, All,
Second and last post regarding the Word_Frequency macro !
Now, a simple example :
Open the change.log file of the last release v8.9.6
Do a stream selection of all the points of the v8.9.6 release, ONLY. So, the lines below :
1. Fix vulnerability (CVE-2026-46710) of v8.9.4 & v8.9.5 installer.
2. Fix x86 installer regression of not showing installation entry in Control Panel's "Unstall a program".
3. Fix x86 installer regression where context menu not installed or uninstalled correctly.
4. Fix UAC prompt display regression (“Notepad++ installer” instead of “Notepad++”) for Notepad++ v8.9.5.
5. Fix incorrect bevaviour when saving dirty read-only files.
6. Fix regression where saving a UDL file removed XML declaration.
Run the Word_Frequency macro. You should get, at once, this OUTPUY text :
1 : 1
2 : 1
3 : 1
4 : 2
5 : 3
6 : 1
9 : 3
CVE-2026-46710 : 1
Control : 1
Fix : 6
Notepad : 3
Panel's : 1
UAC : 1
UDL : 1
Unstall : 1
XML : 1
a : 2
bevaviour : 1
context : 1
correctly : 1
declaration : 1
dirty : 1
display : 1
entry : 1
file : 1
files : 1
for : 1
in : 1
incorrect : 1
installation : 1
installed : 1
installer : 4
instead : 1
menu : 1
not : 2
of : 3
or : 1
program : 1
prompt : 1
read-only : 1
regression : 4
removed : 1
saving : 2
showing : 1
uninstalled : 1
v8 : 3
vulnerability : 1
when : 1
where : 2
x86 : 2
If you prefer a ordered list ignoring the case, simply insert the regex replacement, below
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="(?x-i) \u+" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1602" wParam="0" lParam="0" sParam="\L$0" />
<Action type="3" message="1702" wParam="0" lParam="640" sParam="" />
<Action type="3" message="1701" wParam="0" lParam="1609" sParam="" />
Right before the sort line :
<Action type="2" message="0" wParam="42059" lParam="0" sParam="" />
Here is the trick to get the right number of occurrences when > 99,999.
Search for any remaining ¶ character with the regex ¶+ . Let’s suppose you have this line :
the : ¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶97371
As the number of consecutive ¶ is 23, the exact of occurrences of the word the is : 23 × 10000 + 97,371 i.e. 327,371 occurrences
Remember that the first thing to do, before running the Word_Frequency macro, is to select part or all current file contents !
Best Regards,
guy038