Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
就是我有一些精灵里面有实例变量是名称及一串字符我通过部分字符锁定并给他赋值例如有个精灵的名称是“奇怪的剑士”我想通过”剑士“锁定到他这样给他的其他实例变量比如血量赋值例如血量+10大概是用正则表达式但写了几次都错了
@maker发 用find表达式试试?找不到会返回-1,找得到会返回字符下标,所以可以根据返回值是否是-1来验证对应的字符是否存在