I have written a script that extracts all XML entities from a file using a regex (&[^;]+;).
The output has a header (just plain text) and several thousand matching strings/XML entities with one occurrence per line:
List of entities in 'input.xml':
========================================================================
ü
ü
ä
Ä
ü
ä
ü
–
...
I would like to modify the output so that
So a sample output could like this:
ä 357
ö 231
...
In reply to Counting matches and removing duplicates by LexPl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |