Trying to preg_match_all
#THING or [#THING]
This works for the first
/(#[A-Z]+)/
For the other with brackets, I thought something like this should work, but it doesn't.
/(\[?#[A-Z]+\]?)/
Ultimately, I want to match any of these
#THING [(#THING)] or [anything(#THING)anything]