note 55275 added to ref.regex

From: Date: Fri, 29 Jul 2005 00:07:09 +0000
Subject: note 55275 added to ref.regex
Groups: php.notes 
Request: Send a blank email to php-notes+get-92680@lists.php.net to get a copy of this message
Hey trucex. Cool phone number function but your $regex produces the following error. Warning: No ending delimiter '^' found Instead of: $regex = '^[(]?[2-9]{1}[0-9]{2}[) -]{0,2}' . '[0-9]{3}[- ]?' . '[0-9]{4}[ ]?' . '((x|ext)[.]?[ ]?[0-9]{1,5})?$'; It think should be: $regex = '^[(]?[2-9]{1}[0-9]{2}[) -]{0,2}' . '[0-9]{3}[- ]?' . '[0-9]{4}[ ]?' . '((x|ext)[.]?[ ]?[0-9]{1,5})?$^'; ---- Submitter IP: 12.160.245.96 ---- Manual Page -- http://www.php.net/manual/en/ref.regex.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55275 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55275&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55275&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55275&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55275&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55275&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55275&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55275&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92680) next »