<?php $re = '/@\K[\w.]+/'; $str = '1 blah blah blah @username_. sblah sblah sblah @test'; preg_match($re, $str, $matches); echo $matches[0]; // username_.
You have javascript disabled. You will not be able to edit any code.