SSI conditional expression problem

  NationalAcrobat 11:29 14 Dec 2005
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 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

OnePlus 5 review

Alice Saey's mesmerising animation for Dutch singer Mark Lotterman

iPad Pro 10.5in (2017) review

Comment booster votre iPhone ?