<?php$dummy = array();echo("Result = ".preg_match_all('/[\[|\]|x\{|}|\\|\^|\||~]/', 'hasan^khan',$dummy));?>
Standard input is empty
Result = 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!