Expand description
The matched texts themselves, not their lines: every match (or one capture group of it) in
order, or counted by value, most frequent first — grep -o | sort | uniq -c in one pass.
Structs§
Constants§
- VALUES_
MAX - Most different values counted; the matches of others are counted together.
Functions§
- count
- Counts the matched texts (or a capture group) by value. Returns
Nonewhen cancelled. - extract
- Calls
on_valuewith the text of every match inrange— capture groupgroupof it (0: the whole match) — skipping matches where the group did not take part. Stops when it returns false. - tally_
to_ csv - The tally as CSV: value, matches, percent.
- write_
values_ to - Writes every matched text (or group) on a line of its own, as UTF-8. Returns how many, or
Nonewhen cancelled.