阅读背景:

为什么String.match(/ \ d * /)返回一个空字符串?

来源:互联网 

Can someone help me to understand why using \d* returns an array containing an empty string, whereas using \d+ returns ["100"] (as expected). I get why the \d+ works, but don't see why exactly \d* doesn't work. Does using the * cause it to return a zero-length match, and how exactly does this work?Can someone help me to understand why using \d*




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: