I am passing a string and making sure all the characters in that string 
are valid.

Example:
For a persons age I am using:

 if (!preg_match("/^[0-9]+$/", $Age)) echo "Enter numeric value for age".

But how would I include the following characters as permissible in preg 
match

~!@#$%^&*()-=_+,.?/\|{}[]

since some of these characters have special meaning in PCRE regrex syntax??


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to