extract expression from the command line