[pmwiki-devel] Math pattern matching glitch

The Editor editor at fast.st
Tue Mar 20 13:11:03 CDT 2007


Also, I still can't seem to get this pattern to match properly...

$ZAPmath = "/^[-+*/% ()0-9.]+$/";
if (! preg_match($ZAPmath, $value)) $m .= "Invalid numeric input. ";

It returns very unpredictable results.  Can't seem to get it right...

Thanks in advance...

Cheers,
Dan



More information about the pmwiki-devel mailing list