<?php $re = '/(\w+(?:-\w+)*)=(?|"((?:[^"]+|(?<=\\\\)")++)"|([^"\s]+))/'; $str = 'add name=100YER on-login=":do {:put \\"a\\";} on-error={};" rate-limit=256k/512k'; preg_match_all($re, $str, $matches); $result = array_combine($matches[1], $matches[2]); print_r($result);
You have javascript disabled. You will not be able to edit any code.