Bug #1673 Updated: ereg_replace doesn't handle \$var correctly
| From: | Bug Database | Date: | Tue, 06 Jul 1999 21:09:56 +0000 |
| Subject: | Bug #1673 Updated: ereg_replace doesn't handle \$var correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8143@lists.php.net to get a copy of this message | ||
ID: 1673
Updated by: andrey
Reported By: conley@enteka.com
Status: Closed
Bug Type: Other
Assigned To:
Comments:
You need to add an extra pair of backslashes in order for it to work,
since ereg_replace() internally sees your "\$" as just "$" and it matches
the end of the line instead of $. So replace "\$" with "\\\$".
Full Bug description available at: http://bugs.php.net/?id=1673