If the group in the regular expression is optional and there were no match captured by ... println(name) // John // value of the first group matched by \w+
確定! 回上一頁