fork(1) 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. $text = '\'"test>><<<®¥§"\'can’t get one.”';
  5. echo preg_replace($re, '', $text);
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
'"test<<<"'cant get one.