fork(1) download
  1. <?php
  2.  
  3. $re = "/(?!^)@@(.*?)@@/";
  4. $str = "@@lang_eng_begin@@test@@lang_eng_end@@ ";
  5. preg_match($re, $str, $match);
  6. print_r($match[1]);
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
test