Regular expression

Regular expression, regex,regexp

PHP Regex validation SMS number beginning +

PHP Regex validation SMS number beginning + , No space and Non numeric.

[php]

$phone = "+02142329877";
$phone = "02142329877";

if (preg_match("/^\+?[0-9]*$/", $phone)) {

Syndicate content