Posted by lkrubner on 11/05/19 11:30
I apologize for my igorance of Regex. I can't get this function to
work. It gives the following error message.
function checkForFloatingPoint($input=false) {
$pattern = "[-+]?([0-9]*\.[0-9]+|[0-9]+)";
$match = preg_match (pattern, subject);
echo "The match is: $match ";
return $match;
}
Warning: preg_match(): Delimiter must not be alphanumeric or backslash
in /home/hoovera/public_html/lawrenceScripts/lk_lib.php on line 642
The match is:
Navigation:
[Reply to this message]
|