I learn regular, why does this code return false?
$pol = '*'; $a = preg_match('[*\/\-+]',$pol); var_dump($a);
Here, for some reason, this template works fine for this line: http://www.rubular.com/ What is the problem?
The essence of the regular, check for validity arithmetic signs that come in the input. The template seems correct, I do not understand.