fork download
  1. <?php
  2.  
  3. $re = '/.+?(?=\bthe\b)/s';
  4. $str = "this is completely customizable through the dashboard. This is a separate area from the main c";
  5. preg_match_all($re, $str, $matches);
  6. print_r($matches[0]);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Array
(
    [0] => this is completely customizable through 
    [1] => the dashboard. This is a separate area from 
)