Hello!
2013/1/13 kindle:
> 春哥,https://github.com/agentzh/replace-filter-nginx-module 貌似不能在lua中直接调用啊。是否打算给ngx_lua开放这个api那
对于这个 replace filter 模块,我是打算支持 Lua 代码内嵌的,比如:
replace_filter "\d+" "return my_lua_function(match)" "eig";
但不是反过来从 Lua 里调用 replace_filter 指令。
从 Lua 里可以直接通过 FFI 调用 libsregex 库的 C API :) 毕竟 ngx_replace_filter 也是使用的
libsregex:
https://github.com/agentzh/sregex
同时抄送给 openresty 中文邮件列表:http://openresty.org/#Community
Best regards,
-agentzh