I can't find any definitive information on what /
means in a JavaScript regex.
The code replace(/
/g, '');
What I'm able to figure out is this:
/
= I don't know
= carriage return
/g
= I don't know but It may mean 'the match must occur at the point where the previous match ended.'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…