Match command line options using regex.