<?php $re = '/(?:[^\s()":]*:)?"[^"]+"|[^\s()]+|[()]/m'; $str = '+test +word any -sampe (+toto +titi "generic test") -column:"test this" (+data id:1234)'; preg_match_all($re, $str, $matches); print_r($matches[0]);
You have javascript disabled. You will not be able to edit any code.