In php if I capture a string
$string = 'gardens, countryside @teddy135'
how do I capture @username from that string to a new variable in php username begins with @ preceded by a space and terminating in a space or the end of the string?
so I would end up with
$string = 'gardens, countryside'
$username ='@teddy135'
\s@(\w+)\b