fork(1) download
  1. <?php
  2.  
  3. $search_field_pattern = "/\bdata\[SearchForm]\[(\w+)]/i";
  4. if(preg_match("~\[\w+].*?\[(\w+)]~", "data[SearchForm][somestringhere]", $m)) {
  5. echo $m[1]; // => somestringhere
  6. }
Success #stdin #stdout 0.02s 23596KB
stdin
Standard input is empty
stdout
somestringhere