hugh williams <hughw@xxxxxxxxxxxxxxxx> writes: >> <!--#exec cmd="echo $DOCUMENT_NAME | perl -e 'while (<>) >> {s/(\w+)_(\w+)_[_abt]{3}\..*/sprintf \"<b>%s Option %s >> Hyperlinks<\/b>\", uc $1,uc $2/e;print;}'" --> >> >> This works fine in both Apache 1.3.33 and 2.2.3; however 2.2.3 also >> send the following error warning into the error log: >> >> [Wed Oct 22 14:50:00 2008] [warn] [client xxx.xxx.xxx.xxx] regex >> capture $1 refers to no regex in /users/hughw/public_html/spclhand/z >> 1234_aba_abt.html >> [Wed Oct 22 14:50:00 2008] [warn] [client xxx.xxx.xxx.xxx] regex >> capture $2 refers to no regex in /users/hughw/public_html/spclhand/z >> 1234_aba_abt.html >> >> This message is found in mod_include.c, and is not present in the >> Apache 1.3 tree. >> >> So, can someone explain to me why the error is triggered? The >> include parses perfectly and the correct results are displayed, that >> is, Perl handles things fine, but Apache apparently is trying to use >> the "$1" and "$2" for its own needs as well as letting Perl have Have you tried escaping the $ with \? Maybe something like <!--#exec cmd="echo $DOCUMENT_NAME | perl -e 'while (<>) {s/(\w+)_(\w+)_[_abt]{3}\..*/sprintf \"<b>%s Option %s Hyperlinks<\/b>\", uc \$1,uc \$2/e;print;}'" --> -- Dan Poirier <poirier@xxxxxxxxx> --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx