fork download
  1. <?php
  2.  
  3. $test = "asdfas==адъфасдфас==asdfasd";
  4. preg_match_all("/[[:ascii:]]+/",$test,$matches);
  5. print_r($matches);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => asdfas==
            [1] => ==asdfasd
        )

)