openresty / replace-filter-nginx-module

Streaming regular expression replacement in response bodies
260 stars 68 forks source link

Using nginx variables in the regular expression #5

Open nonhex opened 11 years ago

nonhex commented 11 years ago

I'm using nginx for many projects, there is a possibility to add the use of nginx variables in the query, for example: replace_filter /$project/ /, - or: replace_filter "/$project/" /

agentzh commented 11 years ago

Nginx variables are not supported (yet) in the pattern arguments. And to make this feature really useful, we'll have to implement an LRU-based compiled regex cache for it as well, because regex compilation is expensive.

Patches welcome :)

bmwant commented 2 years ago

hey, is there any update on this?