RE: [PHP] eregi_replace

From: Date: Thu, 04 Apr 2002 21:31:50 +0000
Subject: RE: [PHP] eregi_replace
Groups: php.general 
Request: Send a blank email to php-general+get-91603@lists.php.net to get a copy of this message
I think you found a bug in PHP. I even tried simple things like: $qq = "V:\\memo\\F0001\\abcdef.com"; print "$qq\n"; $qx = ereg_replace("V:\\memo","",$qq); print $qx; and it failed -----Original Message----- From: Fredrik Arild Takle [mailto:ftakle@online.no] Sent: Thursday, April 04, 2002 3:18 PM To: Rick Emery Subject: RE: [PHP] eregi_replace > $NoteNm[$i] = eregi_replace ("V:\memo\F0001\", "", > "$NoteNm[$i]"); > $NoteNm[$i] = eregi_replace ("\\LOBBY\VismaDok\Memo\", "", > "$NoteNm[$i]"); -----Original Message----- From: Rick Emery [mailto:remery@excel.com] Sent: 4. april 2002 23:13 To: 'Fredrik Arild Takle'; php-general@lists.php.net Subject: RE: [PHP] eregi_replace show the whole line of coding again. very few of us keep threads. include previous responses -----Original Message----- From: Fredrik Arild Takle [mailto:ftakle@online.no] Sent: Thursday, April 04, 2002 3:14 PM To: php-general@lists.php.net Subject: Re: [PHP] eregi_replace > Backslashes are magic. > > Double them and try again (e.g., --- > > $NoteNm[$i] = eregi_replace ("\\\\LOBBY\\VismaDok\\Memo\\", ... Well I've allready tried that one: Outputs: Warning: REG_EESCAPE:~trailing backslash (\) in D:\Inetpub\wwwroot\www_lobb\phpshop.php on line 28 Warning: REG_EESCAPE:~trailing backslash (\) in D:\Inetpub\wwwroot\www_lobb\phpshop.php on line 29 Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#91603) next »