<?php $string = "{random_one}[SUBSTRING1] blah [SUBSTRINGX] blah blah {random_two}[SUBSTRING2] blah blah blah{random_one}[SUBSTRING3]"; preg_match_all("/{.+?}\[(.+?)\]/i", $string, $matches); var_dump($matches[1]);
You have javascript disabled. You will not be able to edit any code.