Text <token> more text ==> <token>
protected function extractTokens($nameSchema) { preg_match_all('|<([^>]+)>|U', $nameSchema, $tokenArray); return $tokenArray[0]; }