%w 和 %W 如下所示: Str = string.gsub(Str, \xe2\x80\x9c%f[%w]cat%f[%W]\xe2\x80\x9d
小 %w 和大 %W 有什么区别?
\n以下是更多示例: for _ in string.gmatch(\xe2\x80\x9c\\n\xe2\x80\x9d .. Str .. \xe2\x80\x9c\\n\xe2\x80\x9d, \xe2\x80\x9c%Wcat%W\xe2\x80\x9d) do ,
if Pos1 == 0 or string.find(Str, \xe2\x80\x9c^%W\xe2\x80\x9d, Pos1) then
我知道 %w 匹配单词字符
\n所以我希望 %W 匹配大写单词字符?
\n