fork(2) download
  1. <?php
  2.  
  3. $re = '/^(?:[A-Za-z0-9\x{00C0}-\x{017F}\x{20AC}\x{2122}\x{2150}\x{00A9} \/.,\-_$!\'&*()="?#+%:;<[\]\r\n]|[\x{1F300}-\x{1F3FF}]|[\x{1F400}-\x{1F64F}\x{1F680}-\x{1F6FF}])*$/u';
  4. $str = 'some string';
  5. preg_match_all($re, $str, $matches);
  6. print_r($matches);
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => some string
        )

)