Skip to content

Commit

Permalink
clarify which regex patterns are supported
Browse files Browse the repository at this point in the history
golang's regexp supports RE2, so we should mention it in the help.

Signed-off-by: Alex Couture-Beil <[email protected]>
  • Loading branch information
alexcb committed Nov 25, 2022
1 parent 43b0ea1 commit f06085d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Reads from stdin and highlights any matched patterns

usage: colorgrep [options] <pattern> [[-i] [-w] [-c <color>] <pattern> [...]] [-- <file>]

Reads from stdin (or <file> when specified), any regex patterns which match will cause the text to be highlighted.
Reads from stdin (or <file> when specified), any RE2 patterns which match will cause the text to be highlighted.

-i case insensitive matching
-w word boundary matching
Expand Down
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func main() {
fmt.Printf(
"usage: %s [options] <pattern> [[-i] [-w] [-c <color>] <pattern> [...]] [-- <file>]\n"+
"\n"+
"Reads from stdin (or <file> when specified), any regex patterns which match will cause the text to be highlighted.\n"+
"Reads from stdin (or <file> when specified), any RE2 patterns which match will cause the text to be highlighted.\n"+
"\n"+
" -i case insensitive matching\n"+
" -w word boundary matching\n"+
Expand Down

0 comments on commit f06085d

Please sign in to comment.