Community Patterns

Community Library Entry

1

Regular Expression
Created·2020-07-17 01:12
Flavor·PCRE (Legacy)

/
(?<!\sand\s)(?<!except\s)([A-Z0-9]{8})(?!(\sand))
/
gm
Open regex in editor

Description

matches units that are not next to 'and' (so matches all units next to 'or')

Submitted by anonymous