Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<=(\w\w:)|(\w:)) (.*\n?)\1?\2?
/
g
Input 1
1
New
a: 1, 2, 3 a: a, b, v b: 5, 6, 7 b: 10, 1543, 1345 b: e, fe, sdf cd: asdf, asdfas dfasdfa,asdfasdfa,afdsfa sdf e1: asdfas, dafasd, adsf, asdfasd e1: 1, 3, 2 e1: 9, 8, 7, 6
Extraction