I m looking for extra names in a list of name-value pairs.
Only the names "ACTIVITY_nnnnn"
are of interest.
Each name suffix "_nnnnn"
should be the same, and if it s not,
this is an error condition that should be detected.
Given:
OneTwo=ThreeFour
ACTIVITY_11111=56676566
ACTIVITY_11111=ASDFASDF
ACTIVITY_22222=ASDFwSDF
ABC-123=1121
ACTIVITY_33333=ASDFASsF
ACTIVITY_11111=ASFAFA
DEF-XXY=22222
在此情况下,第一个错配出现在 ACTIVITY_11111
vs. ACTIVITY_22222
中。
当找到另一个匹配条目时, 此表达式会找到匹配项 :
ACTIVITY_(d*=)(.|
|
)*ACTIVITY_1
This is exactly the opposite of what I need...if "Not 1
" was possible,
then the expression would match if another entry had a different suffix.
Is there a way to specify something like ^1
or [^1]
?
The word at 1
can be anything but the value in the capture group.