fork download
  1. <?php
  2.  
  3. $strIn = ' - - Adele Gislan - Web Developer - - -';
  4. $strOut = preg_replace('/.*?(\b.+\b).*/', '$1', $strIn);
  5.  
  6. echo $strOut;
Success #stdin #stdout 0s 20568KB
stdin
Standard input is empty
stdout
Adele Gislan - Web Developer