check arguments with regex for collect command