We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 330bf3e commit 2a84b61Copy full SHA for 2a84b61
xml/en/docs/njs/reference.xml
@@ -9,7 +9,7 @@
9
<article name="Reference"
10
link="/en/docs/njs/reference.html"
11
lang="en"
12
- rev="124">
+ rev="125">
13
14
<section id="summary">
15
@@ -669,6 +669,15 @@ one of the following syntax can be used:
669
r.variables['foo']
670
r.variables.foo
671
</example>
672
+Since <link doc="changes.xml" id="njs0.8.6">0.8.6</link>,
673
+regular expression captures can be accessed using the following syntax:
674
+<example>
675
+r.variables['1']
676
+r.variables[1]
677
+</example>
678
+</para>
679
+
680
+<para>
681
nginx treats variables referenced in <literal>nginx.conf</literal>
682
and unreferenced variables differently.
683
When a variable is referenced, it may be cacheable,
0 commit comments