You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set $querystring "?md5=";
subs_filter (.*\.mp4) $1$querystring gir;
Replace link.mp4 file on html output
<video width="320" height="240" controls>
<source src="1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
is it possible to take the string that the regex matched in $1 and store it like this. (The code bellow does not work) what is why I am curious if there is any other way even with Nginx Lua ? set $storedvar $1;
Thanks in advanced fantastic module <3
The text was updated successfully, but these errors were encountered:
I just tried the following same empty output and this should work since its a regex named sub pattern
set $querystring "?md5="; #query string on end of url to add
set $insertvar ""; #nginx would say unknown var unless this is here
subs_filter \"(?<insertvar>.*)\.mp4\" \"$insertvar.mp4$querystring\" gir;
C0nw0nk
changed the title
Question | Possible to have subs_filter match $1 stored var
Question | Possible to have subs_filter match $1 stored var named sub pattern
Oct 12, 2016
C0nw0nk
changed the title
Question | Possible to have subs_filter match $1 stored var named sub pattern
Question | Possible to have subs_filter match a stored var regex named sub pattern
Oct 13, 2016
So I am re-writing links like so
Replace link.mp4 file on html output
is it possible to take the string that the regex matched in $1 and store it like this. (The code bellow does not work) what is why I am curious if there is any other way even with Nginx Lua ?
set $storedvar $1;
Thanks in advanced fantastic module <3
The text was updated successfully, but these errors were encountered: