Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^[A-Z]:Y(,[A-Z]:Y)*$
/
gm
Input 1
1
New
S:Y,P:Y,T:Y,A:Y S:Y,P:Y,T:Y,A:Y,C:Y S:Y,P:Y,T:Y,A:Y,C:Y,D:Y A:Y B:Y D:Y,F:Y All the following should never match. Cos 1 or more of them has :N. S:Y,P:N,T:Y,A:Y S:Y,P:Y,T:Y,A:Y,C:N S:Y,P:Y,T:N,A:Y,C:N,D:Y A:N B:N D:Y,F:N
Extraction