Re: [PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread CC Zona
In article <9c2j66$1nt$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > If you are trying to match a $ in your code, just use a backspace to escape > it. Or enclose it in square braces. [$] Or use preg_quote(). -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread Plutarck
Try switing the modifier to "e". "E" is not a supported modifier according to the manual. Only the following are supported: i m s x e A D S U X If you are trying to match a $ in your code, just use a backspace to escape it. But I don't think that was your problem... -- Plutarck Should be worki

[PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread Grant Walters
Hi, I'm having problems stopping preg_replace from losing $ signs and following text when replacing with array variables. I am trying to use the E modifier and keep getting: "Warning: Unknown modifier 'E' in script.WEB.php3 on line 413" $template=array( "/({PAGETOP})/E", "/({PAGEMIDDLE})/