DevOps Classroomnotes 21/Jul/2022

Grok Patterns Contd

Regular Expressions

  • Characters
    • Escape character: \
    • Any character: .
    • Digit: \d
    • Not a digit: \D
    • Word character: \w
    • Not a word character: \W
    • Whitespace: \s
    • Not whitespace: \S
    • Word boundary: \b
    • Not a word boundary: \B
    • Beginning of a string: ^
    • End of a string: $
  • Groupings
    • Matches characters in brackets: [ ]
    • Matches characters not in brackets: [^ ]
    • Either or: |
    • Capturing group: ( )
  • Quantifiers
    • 0 or more: *
    • 1 or more: +
    • 0 or 1: ?
    • An exact number of characters: { }
    • Range of number of characters: {Minimum, Maximum}
  • refer to the classroom video for examples
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%