Skip to content
New issue

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

added the fifth param for ngx.re.find() #1

Closed
wants to merge 3 commits into from

Conversation

lancelijade
Copy link

to retrieve the n-th matched result's position

@agentzh
Copy link
Member

agentzh commented Nov 9, 2013

@lancelijade This looks generally good except that I'd rename the "n" parameter to "nth" to be a bit clearer :)

Also, we need to port this "nth" argument support to the ngx_lua core's ngx.re.find implementation too :)

@lancelijade
Copy link
Author

I'm tried to modify ngx_http_lua_regex.c , but cannot correctly added the fifth argument to that function. :(

@agentzh
Copy link
Member

agentzh commented Nov 9, 2013

Heh, that is an evidence for the better hackability of the new FFI-based API in lua-resty-core ;)

No worries. I can take care of that :)

agentzh added a commit to openresty/lua-nginx-module that referenced this pull request Nov 26, 2013
… control which submatch capture's indexes are returned. thanks Lance Li for the feature request in openresty/lua-resty-core#1.
agentzh added a commit that referenced this pull request Nov 27, 2013
@agentzh
Copy link
Member

agentzh commented Nov 27, 2013

Already applied a modified version of your patch to master. Also added the corresponding support to the ngx_lua core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants