fork download
  1. <?php
  2.  
  3. $re = '/\broundcube.*?\bhttponly\b/i';
  4. $str = "roundcube_sessauth=-del-; expires=Thu, 06-Aug-2015 03:38:33 GMT; path=/; secure; httponly, roundcube_sessid=dh7a60r14c6qfa3lr7m90; path=/; secure; HttpOnly, roundcube_sessauth=S2124929b7486e6805d615a86; path=/; secure; httponly";
  5. preg_match_all($re, $str, $matches);
  6. print_r($matches[0]);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Array
(
    [0] => roundcube_sessauth=-del-; expires=Thu, 06-Aug-2015 03:38:33 GMT; path=/; secure; httponly
    [1] => roundcube_sessid=dh7a60r14c6qfa3lr7m90; path=/; secure; HttpOnly
    [2] => roundcube_sessauth=S2124929b7486e6805d615a86; path=/; secure; httponly
)