Regular Expressions 101

Community Patterns

1...45678...124

Want to exclude all lines with a COLON : otherwise find what is after array.

0

Regular Expression
Python

r"
^[^:]*((array|unassigned)*)[^:]*\n$
"
img

Description

This does not work.
Needs to find all lines with the word array OR unassigned except for lines with a ':' character.

Submitted by anonymous - 5 years ago