so this is what the program is trying to find ~poll[Apples,Oranges,Chicken]
Here is what i have the effectively grabs that information
preg_match_all('/~[[A-Za-z0-9\.\,\]]+/', $message, $widgets);
so $widgets[0][0] = ~poll[Apples,Oranges,Chicken]
But when I type this in ~poll[Apples,Oranges,Chicken]HELLO WORLD!
$widgets[0][0] = ~poll[Apples,Oranges,Chicken]HELLO
What is the command or how do i get it to only include the info all the way up until the ending Bracket.
~poll[Apples,Oranges,Chicken]HELLO WORLD!
should make $widgets[0][0] = ~poll[Apples,Oranges,Chicken]