Edit: What I want to do here is to check whether the input string stored in $message_content follows the rules of the given grammar which is @ .
I just want a return of true or false while print_r($matches) outputs Array().