support regex in setcookie

support regex in setcookie