(count-matches "\\w*" "foo bar baz")
参考链接CL-PPCRE - Portable Perl-compatible regular expressions for Common Lisp
输出结果为何是6而不是5?
(count-matches "\\w*" "foo bar baz")
参考链接CL-PPCRE - Portable Perl-compatible regular expressions for Common Lisp
输出结果为何是6而不是5?
(all-matches-as-strings "\\w*" "foo bar baz")
;; => ("foo" "" "bar" "" "baz" "")
谢谢回复,请问为何会有最后一个“"呢?
谢谢你的解答!