<?php $string="@smn and @someone are web developers"; preg_match_all('/(?<!\w)@\w+/',$string,$matches); print_r($matches[0]);
You have javascript disabled. You will not be able to edit any code.