note 88895 added to function.preg-match
| From: | dirknodotsemperatpanicplacedotcom at osu1 dot php dot net | Date: | Thu, 12 Feb 2009 13:10:44 +0000 |
| Subject: | note 88895 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150568@lists.php.net to get a copy of this message | ||
I use this one for (german) mobile numbers. Don't know if it's perfect but it works pretty
well.
$pattern = '/^(\+49|0)1(6|7)([0-9])[\\/-]?([0-9]{7})$/i';
----
Server IP: 217.13.201.10
Probable Submitter: 81.200.198.20
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/88895
Del: integrated -- https://master.php.net/note/delete/88895/integrated
Del: useless -- https://master.php.net/note/delete/88895/useless
Del: bad code -- https://master.php.net/note/delete/88895/bad+code
Del: spam -- https://master.php.net/note/delete/88895/spam
Del: non-english -- https://master.php.net/note/delete/88895/non-english
Del: in docs -- https://master.php.net/note/delete/88895/in+docs
Del: other reasons-- https://master.php.net/note/delete/88895
Reject -- https://master.php.net/note/reject/88895
Search -- https://master.php.net/manage/user-notes.php