<?php $str = 'RANDOMWORD-123'; var_dump(preg_match('/^[a-zA-Z0-9\s--]+$/', $str));
You have javascript disabled. You will not be able to edit any code.