[eluser]theprodigy[/eluser]
Quote:return (bool)preg_match('/^[\-+]?[0-9]+\.[0-9]+$/', $str);
I'm not a regex expert, so I figured I would ask.
Is there a difference between that listed above and
Code:
return (bool)preg_match('/^[\-+]?\d+\.\d+$/', $str);
Doesn't \d mean digit?