jak zapisac w wyrazeniu regularnym np. " wszystkie znaki poza "b" "?
pozdrawiam
<?php else $flag=false; ?>
<?php else $flag=false; ?>
<?php else $flag=false; ?>
<?php $reg = "/([^b])/"; $test = "b"; $test2 = "c"; if( preg_match($reg, $test2, $match2) ) echo"$test2 is ok<br />"; else echo "$test2 is nie ok<br />"; ?>
<?php $reg = "/^((?<!b)([^b]*?)(?!b))$/im"; $test = "string with b and some chars"; $test2 = "string with no * and some chars"; if( preg_match($reg, $test2, $match2) ) echo"$test2 is ok<br />"; else echo "$test2 is nie ok<br />"; ?>