Skip to content

Instantly share code, notes, and snippets.

@udondan
Last active November 14, 2019 16:27
Show Gist options
  • Save udondan/0d171c761af4db8f17a1ed32c37480c0 to your computer and use it in GitHub Desktop.
Save udondan/0d171c761af4db8f17a1ed32c37480c0 to your computer and use it in GitHub Desktop.
Green BG with black FG
(?i)(success(ful(ly)?)?|passing|passed|pass(?!word|phrase|wd))|done|(?<![a-z])ok(?![a-z])|(?<![^\s:])(?:1|2)\d{2}(?![^\s:])(?! (k(ilo)?|M(ega)?|G(iga)?|T(era)?|P(eta)?)(i)?B(yte|it)?)
Orange BG
(?i)warnings|warning|warn|rejected|(?<![^\s:])(?:3)\d{2}(?![^\s:])(?! (k(ilo)?|M(ega)?|G(iga)?|T(era)?|P(eta)?)(i)?B(yte|it)?)
Red BG
(?i)error(s)?|fail(s|ed(?!=0)|ure(s(?!: \[]))?)?(?![a-z])|exception(s(?!: \[]))?(?![a-z])|abort(ed)?|decline(d)?|denied|fatal|TODO|(?<![^\s:])(?:4|5)\d{2}(?![^\s:])(?! (k(ilo)?|M(ega)?|G(iga)?|T(era)?|P(eta)?)(i)?B(yte|it)?)
Orange BG (for Terraform)
\d+ (to )?(add|chang|destroy)(e(d)?)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment