$pattern = "/[abc]/"; $text = "ghi"; if(preg_match($pattern,$text)){ echo "hello";}
Standard input is empty
$pattern = "/[abc]/"; $text = "ghi"; if(preg_match($pattern,$text)){ echo "hello"; }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!