Preg_match_all problem
| From: | Jeff McKeon | Date: | Mon, 12 Apr 2004 15:48:44 +0000 |
| Subject: | Preg_match_all problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183163@lists.php.net to get a copy of this message | ||
Can anyone see why I'm getting this error message:
"Warning: No ending delimiter '^' found in
C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126"
From this line:
if(preg_match_all("^([00])?.*$",$called,$found))
{
substring($called,2,9);
}
I basically have a phone bill that sometimes has the phone number
preceeded by "00" and sometimes not.
When it has the "00" I want to trim it with the substring command.
Thanks,
Jeff