fork download
  1. <?php
  2.  
  3. $str = "...this is a test...";
  4.  
  5. preg_match_all('/\.{3}(.*)\.{3}/m', $str, $m);
  6.  
  7. print_r($m);
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => ...this is a test...
        )

    [1] => Array
        (
            [0] => this is a test
        )

)