Editing Wikiq Pattern Matching
From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 21: | Line 21: | ||
To enable users to search for patterns in the text of revisions we will provide two additional command line arguments. | To enable users to search for patterns in the text of revisions we will provide two additional command line arguments. | ||
<code>-RP</code> <code>--revision-pattern</code>: a regular expression | <code>-RP</code> <code>--revision-pattern</code>: a regular expression <code>-RPl</code> <code>--revision-pattern-label</code>: a label for the columns output based on matching revisions against the pattern. | ||
<code>-RPl</code> <code>--revision-pattern-label</code>: a label for the columns output based on matching revisions against the pattern. | |||
Users may provide multiple revision patterns and accompanying labels. The patterns and the labels must be provided in the same order for wikiq to be able to correctly label the output columns. | Users may provide multiple revision patterns and accompanying labels. The patterns and the labels must be provided in the same order for wikiq to be able to correctly label the output columns. | ||
Line 29: | Line 27: | ||
In addition to revisions, we also wish to support pattern matching against revision ''summaries''. Therefore we will also add corresponding command line arguments. | In addition to revisions, we also wish to support pattern matching against revision ''summaries''. Therefore we will also add corresponding command line arguments. | ||
<code>-CP</code> <code>--comment-pattern</code>: a regular expression <code>-CPl</code> | <code>-CP</code> <code>--comment-pattern</code>: a regular expression <code>-CPl</code> <code>--comment-pattern-label</code>: a label for the columns output based on matching revisions against the pattern. | ||
<code>--comment-pattern-label</code>: a label for the columns output based on matching revisions against the pattern. | |||
== Output == | == Output == |