SSI conditional expression problem

  NationalAcrobat 11:29 14 Dec 05
Locked

I'm trying to use the following SSI conditional expression

!--#if expr="${QUERY_STRING} = /^page\=([a-zA-Z0-9_]{4,})\;lang\=([0-2])$/" -->
!--#set var="page" value="$1" -->
!--#set var="lang" value="$2" -->
!--#endif -->

to test if env variable QUERY_STRING matches given regular expressions, something like 'page=main;lang=1' etc. If it does, then capture matches into backreferences $1 (page) and $2 (lang). However, it seems to me that the parentheses () are matched literally instead, like \( and \).. Is there any workaround to use backreferences succesfully?

  NationalAcrobat 09:50 15 Dec 05

This problem seems to relate with Apache server software. I'm on server which has Apache/1.3.27 (Unix) installed. Someone told me that there's no problem with Apache 2.

Does anyone have more specific information about that?

This thread is now locked and can not be replied to.

Huawei P10 review

1995-2015: How technology has changed the world in 20 years

How VR is being used to simulate space

New iPad, iPhone SE & Red iPhone 7 on sale now