SSI conditional expression problem

  NationalAcrobat 11:29 14 Dec 2005

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 2005

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.

Elsewhere on IDG sites

iPhone X review

Political cartoons in 2017: Chris Riddell, Rebecca Hendin and Dave Brown on what it’s like to…

The best iPhone for 2017

Tennis : comment regarder la finale de la Coupe Davis 2017 ?