<?php $subject = "text text text text [helloo] text [hello2] (hello3) text"; $pattern = '/\[([^\)]*)\]/'; preg_match_all($pattern, $subject, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.