Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-04-20 03:34
Flavor·Python

r"""
^[^:]*((array|unassigned)*)[^:]*\n$
"""
ig
Open regex in editor

Description

Find all lines with the word array OR unassigned except for lines with a ':' COLON character.

Thanks to Kinny on IRC :)

Added some tests.

Submitted by Kinny, rjt