Re: Problems with backslash and eregi_replace() ...
| From: | Frederico Augusto Costa | Date: | Wed, 06 Sep 2000 20:42:29 +0000 |
| Subject: | Re: Problems with backslash and eregi_replace() ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15595@lists.php.net to get a copy of this message | ||
Try
eregi_replace('\\\\','',$buf_filtro);
You have to use 4 slashs because PHP will parse those slashs in 2 and
then those 2 slashs sent to the regexp library.
Ok?
[]'s
-----------------------------------------------------------------
Frederico Augusto Costa
facosta@magnux.com.br
Q: Why haven't you graduated yet?
A: Well, Dad, I could have finished years ago, but I wanted
my dissertation to rhyme.
-----------------------------------------------------------------
On Wed, 6 Sep 2000, Anderson wrote:
> Hi...
>
> I have a little problem , can anybody help me ?
>
> $buf_filtro = eregi_replace('\\','',$buf_filtro);
>
> generates...
>
> Warning: Trailing backslash in ../filtro.php3 on line 42
>
> how can I scape the backslash ???
>
>
> Thanks ,
>
>
>
> Anderson.
>
>