//get all between [] to array preg_match_all('@\[.*?\]@', $this->multiStepForm->getCustomContent(), $inputsString);