fork(2) download
  1. <?php
  2.  
  3. $content = "Mr. Smith and Dr. Jones? I don't believe that. Neither should you.";
  4. print_r(preg_split('/((?<!(Mr|Dr))\.|\?|;) /', $content));
  5.  
  6.  
  7.  
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Mr. Smith and Dr. Jones
    [1] => I don't believe that
    [2] => Neither should you.
)