Jeff McKeon wrote:
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


You need to enclose your regex in /regex/....


if ( preg_match_all ( "/^([00])?.*$/", $called, $found ) )

--
***********************************************************************
*  _  __       __      __       _                      * John  Nichel *
* | |/ /___ __ \ \    / /__ _ _| |__ ___  __ ___ _ __  * 716.856.9675 *
* | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ '  \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150   *
*          |___/                                       * Buffalo, NY  *
* http://www.KegWorks.com            [EMAIL PROTECTED] * 14203 - 1321 *
***********************************************************************

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to