<?php foreach (array('[1234](56 789)', '[1011](1213)') as $value) { $exp = '/[\(\[].+?[\)\]]/'; $res = preg_match($exp, $value, $matches); print_r($matches); }
You have javascript disabled. You will not be able to edit any code.