check arguments with regex for map command