来源:http://www.computercraft.info/forums2/index.php?/topic/2222-unfinished-capture/
参考:http://lua-users.org/wiki/PatternsTutorial
string.find gets a pattern as it’s second parameter. In patterns, the
(
(left bracket) is the start of a capture, so you have to escape it:string.find(someString, "%(")
It will search for a ( in the string not %(, since % is the escape character.
左括号(
在第二个参数pattern里面类似转义字符,需要转义。