Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
どうすればいいですか?
私はこれを得た:
name = "^aH^ai" string.gsub(name, "^a", "")
「こんにちは」を返す必要がありますが、キャレット文字をパターン文字として取得します
これに対する回避策は何ですか?(gsub で行う必要があります)
試す:
name = "^aH^ai" name = name:gsub("%^a", "")
参照: http://lua-users.org/wiki/StringLibraryTutorial