List Info

Thread: note 61846 added to function.preg-match




note 61846 added to function.preg-match
user name
2006-02-13 18:25:43
How to verify a Canadian postal code!

if (!preg_match("/^[a-z]\d[a-z]
?\d[a-z]\d$/i" , $postalcode)) 
{
 	echo "Your postal code has an incorrect
format."
}
----
Server IP: 216.194.113.175
Probable Submitter: 209.167.154.27
----
Manual Page -- 
http://www.php.net/manual/en/function.preg-match.php
Edit        -- http://master.php.net/manage/user-notes.php?action=
edit+61846
Delete: added to the manual -- htt
p://master.php.net/manage/user-notes.php?action=delete+61846
&report=yes&reason=added+to+the+manual
Delete: bad code            -- http://master.
php.net/manage/user-notes.php?action=delete+61846&report
=yes&reason=bad+code
Delete: spam                -- http://master.php.
net/manage/user-notes.php?action=delete+61846&report=yes
&reason=spam
Delete: useless             -- http://master.p
hp.net/manage/user-notes.php?action=delete+61846&report=
yes&reason=useless
Delete: non-english         -- http://mast
er.php.net/manage/user-notes.php?action=delete+61846&rep
ort=yes&reason=non-english
Delete: already in docs     -- http://
master.php.net/manage/user-notes.php?action=delete+61846&
;report=yes&reason=already+in+docs
Delete: other reasons       -- http://master.php.net/manage/user-
notes.php?action=delete+61846&report=yes
Reject      -- http://master.php.net/manage/user-
notes.php?action=reject+61846&report=yes
Search      -- http://ma
ster.php.net/manage/user-notes.php

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

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )