Im having a weird regexp problem in PHP that I think is correct but it
doesnt appear to work.
The code is this:
$a = /test/;
preg_replace(/^\//, , $a);
echo $a;
I want preg_replace to replace the first '/' in $a with '' so that the
echo function echoes test/,
try:
$a = preg_replace(/^\//, , $a);
On Wednesday 20 February 2002 12:25 pm, you wrote:
Im having a weird regexp problem in PHP that I think is correct but it
doesnt appear to work.
The code is this:
$a = /test/;
preg_replace(/^\//, , $a);
echo $a;
I want
Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: John Ericson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace(/^\//.. doesnt work?
Im having
3 matches
Mail list logo