fork download
  1. <?php
  2. $string = 'Writing to tell you that var MyCode = "dentline"; Learn it.';
  3. $matches = array();
  4. preg_match('/var MyCode = "(.*?)";/', $string, $matches);
  5. echo $matches[1];
  6. ?>
Success #stdin #stdout 0s 13112KB
stdin
Standard input is empty
stdout
dentline