Mercurial > hg > nginx-site
comparison xml/ru/docs/http/ngx_http_ssi_module.xml @ 290:15f81ed48a43
Documented regex captures in the "if" SSI command.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 28 Dec 2011 13:27:29 +0000 |
parents | 2305be197a84 |
children | 8548b80a4552 |
comparison
equal
deleted
inserted
replaced
289:df261b1ce71f | 290:15f81ed48a43 |
---|---|
195 <example> | 195 <example> |
196 <!--# if expr="$name = /text/" --> | 196 <!--# if expr="$name = /text/" --> |
197 <!--# if expr="$name != /text/" --> | 197 <!--# if expr="$name != /text/" --> |
198 </example> | 198 </example> |
199 Если в text встречаются переменные, то производится подстановка их значений. | 199 Если в text встречаются переменные, то производится подстановка их значений. |
200 В регулярном выражении можно задать позиционные и именованные выделения, | |
201 а затем использовать их через переменные: | |
202 <example> | |
203 <!--# if expr="$name = /(.+)@(?P<domain>.+)/" --> | |
204 <!--# echo var="1" --> | |
205 <!--# echo var="domain" --> | |
206 <!--# endif --> | |
207 </example> | |
200 </listitem> | 208 </listitem> |
201 </list> | 209 </list> |
202 | 210 |
203 </listitem> | 211 </listitem> |
204 | 212 |