<?php $string = 'Hello @1a1a-1a1a and @2B2B2-B2 too'; preg_match_all("/@([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)+)/", $string, $matches); print_r($matches[1]);
You have javascript disabled. You will not be able to edit any code.