fork download
  1. $pattern = "/[abc]/";
  2.  
  3. $text = "ghi";
  4.  
  5. if(preg_match($pattern,$text)){
  6. echo "hello";
  7. }
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
$pattern = "/[abc]/";

$text = "ghi";

if(preg_match($pattern,$text)){
	echo "hello";
}