We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string.find(s, p [, init [, plain]]) 这部分写的不够清楚,需要优化下
若不需要正则匹配,则使用print(find("abc cba", "(%a+)", 1, true))匹配方式性能会更高(可以被jit加速)
print(find("abc cba", "(%a+)", 1, true))
ref: https://moonbingbing.gitbooks.io/openresty-best-practices/content/lua/string_library.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
string.find(s, p [, init [, plain]]) 这部分写的不够清楚,需要优化下
若不需要正则匹配,则使用
print(find("abc cba", "(%a+)", 1, true))
匹配方式性能会更高(可以被jit加速)ref:
https://moonbingbing.gitbooks.io/openresty-best-practices/content/lua/string_library.html
The text was updated successfully, but these errors were encountered: