Use preg_split:
$arr = preg_split('\[!(FIRST|LAST|OPTIONAL)!\]', $text);
twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101
Oops, forgot the delimiters.
$arr = preg_split('/\[!(FIRST|LAST|OPTIONAL)!\]/', $text);
twiss
Veteran Poster
1,005 posts since Apr 2010
Reputation Points: 177
Solved Threads: 101