check arguments with regex for calc command