Add regex match counting (-RPc / -CPc) #3

Open
mako wants to merge 2 commits from regex-counting into release_review
Showing only changes of commit e4c05caf94 - Show all commits

View File

@@ -88,7 +88,8 @@ The most commonly useful options (`wikiq --help` describes them all):
- `-RP REGEX -RPl LABEL` searches revision text for a regular expression - `-RP REGEX -RPl LABEL` searches revision text for a regular expression
and reports the matches in a column named by the label; repeat the and reports the matches in a column named by the label; repeat the
pair for multiple patterns. `-CP`/`-CPl` do the same for edit pair for multiple patterns. `-CP`/`-CPl` do the same for edit
summaries. summaries. Adding `-RPc` or `-CPc` reports the number of matches
instead of the matched text.
- `--resume` continues an interrupted run from the last complete line of - `--resume` continues an interrupted run from the last complete line of
an existing JSONL output file. Combined with `--time-limit HOURS`, an existing JSONL output file. Combined with `--time-limit HOURS`,
this supports processing very large dumps in bounded chunks. this supports processing very large dumps in bounded chunks.