Regular Expressions 101

Community Patterns

Final Regex for the log

1

Regular Expression
Python

r"
^UVM_[A-Z]*|build.+?(?=\()|[0-9]+(?=\))|(?<=@ )[0-9]+|(?<= \[).*?(?=\]\s)|(?<=: ).*?(?= \[)|((?<=\]).*())
"
gm

Description

A single regex with the AND operator instead of OR

Submitted by anonymous - 4 years ago