If i perform this instruction in the node repl
"hello".match(/(w+)(.*)/)
It returns this
[ 'hello',
'hello',
'',
index: 0,
input: 'hello' ]
I expected it to return the first three items, where did the other values come from?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…