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
/
index:\s*([0-9]+)\s*,
/
gm
Input 1
1
New
node v10.15.2 linux/amd64 [ 'b', index: 4, input: '++a+b+c++', groups: undefined ] 'hello' [ 'c', index: 6, input: '++a+b+c++', groups: undefined ] 'hello' Separating top and bottom so it's easier to read [ 'a', index: 2, input: '++a+b+c++', groups: undefined ] [ 'b', index: 4, input: '++a+b+c++', groups: undefined ] [ 'c', index: 6, input: '++a+b+c++', groups: undefined ]
Extraction