[PHP] Re: rewrite urls with preg_replace

2002-11-29 Thread Dieter Koch
Hi Liljim, thanks very much, with the 'e' modifier and some quote-fixes it works well ! Dieter Liljim [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Dieter, You need to use the 'e' modifier as well as 'is' in your pattern. Have a look in the

[PHP] Re: rewrite urls with preg_replace

2002-11-28 Thread liljim
Hi Dieter, You need to use the 'e' modifier as well as 'is' in your pattern. Have a look in the manual, here: http://www.php.net/manual/en/pcre.pattern.modifiers.php If this modifier is set, preg_replace() does normal substitution of backreferences in the replacement string, evaluates it as PHP