fork download
  1. <?php
  2. $string = 'abcefghijklmnopqrstuvwxyz0123456789';
  3.  
  4. // try to match all characters not within out pattern
  5. preg_match_all("/[^b]/", $string, $matches);
  6.  
  7. // loop through the matches with foreach
  8. foreach($matches[0] as $value)
  9. {
  10. echo $value;
  11. }
Success #stdin #stdout 0.02s 52480KB
stdin
Standard input is empty
stdout
acefghijklmnopqrstuvwxyz0123456789