You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example goal: colorize the <month>-<day> part of each line, if present.
Current best possibility, as far as I know:
rainbow --blue '\d\d-\d\dT'
This also colorizes the T, which is useful for matching, but it would be nice to optionally specify a subset of each match to apply the color to.
One possible approach: add up to one --groups GROUPS switch after each style-pattern switch, to limit the styling to specific parenthesized groups in the match:
EDIT: Yes, thank you, your suggestion indeed works. I still like the --groups syntax idea, but it does seem unnecessary now. Please close this if you like. Is the specific regex syntax supported mentioned anywhere?
Example log output:
Example goal: colorize the
<month>-<day>
part of each line, if present.Current best possibility, as far as I know:
rainbow --blue '\d\d-\d\dT'
This also colorizes the
T
, which is useful for matching, but it would be nice to optionally specify a subset of each match to apply the color to.One possible approach: add up to one
--groups GROUPS
switch after each style-pattern switch, to limit the styling to specific parenthesized groups in the match:If it turns out to be better or simpler to work on exclusion instead, that's just as effective:
The text was updated successfully, but these errors were encountered: