<?php $string = 'username1234_-'; preg_match('/[\w\d_-]{,3}+/', $string, $match); var_dump($match);
You have javascript disabled. You will not be able to edit any code.